Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extract-data-from-text

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
27
increased by92.86%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 06 Mar 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc