Socket
Socket
Sign inDemoInstall

string-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    string-parser

date and number parser, for now


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
7.87 kB
Created
Weekly downloads
 

Readme

Source

#string-parser

Needed to parse numbers and other things

Installation

npm install string-parser

Number

var number = require('string-parser').Number;
var text = 'ten thousand five hundred'
number.getValue(text) //10500
number.getNumbers(text) //'10000500'

Date

var date = require('string-parser').Date;

date.getDate('It is 12/13/2016') // '12/13/2016'
date.getDate('It is December 13, 2016') // '12/13/2016'

FAQs

Last updated on 31 Aug 2016

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