Socket
Socket
Sign inDemoInstall

extract-data-from-text

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    extract-data-from-text

Extract emails, prices, numbers, geo locations from texts by regular expressions


Version published
Weekly downloads
67
increased by103.03%
Maintainers
1
Install size
888 kB
Created
Weekly downloads
 

Readme

Source

Extract data from text

Extract emails and phones from texts by regular expressions

Installation

Install with npm:

npm install extract-data-from-text --save

API

Example:
var string = require('extract-data-from-text')
string.emails('lorem ipsum a@domain.com aaa b@domain.com') 
// returns => ['a@domain.com', 'b@domain.com']
string.phones('+1 123 456 789 john john +1 432 456 789') 
// returns => ['+1123456789', '+1432456789']

Test

npm test

Keywords

FAQs

Last updated on 06 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc