Socket
Book a DemoInstallSign in
Socket

extract-dates

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-dates

Finds dates in strings where date formats are unpredictable

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

extract-dates

Finds dates in strings where date formats are varied and unpredictable.

var extractDates = require('extract-dates');

extractDates("1945/05/04-12/23/99, jan 2001 or 2015");

/*
  produces:

  [
    { year: 1945, month: 5, day: 4 },
    { year: 1999, month: 12, day: 23 },
    { year: 2001, month: 1 },
    { year: 2015 }
  ]
*/

Install

npm install extract-dates

License

BSD

FAQs

Package last updated on 28 Jun 2015

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