1.0.4 • Published 4 years ago

datefinder v1.0.4

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

Datefinder

Description

It finds dates in your text with Node JS and returns extracted strings, start and end indices, the date object. It works for English, Russian and Ukrainian languages in the date range from 1900 to 2000.

Parameters

Method can be called by datefinder(text), where text is your text.

Installation

npm install datefinder --save

Usage

const dateFinder = require('datefinder')

let text = 'Це трапилося 2 січня 2001 року. Я отримав листа, на якому була зазначена дата 12.12.2004.'

console.log(dateFinder(text))

Expected outcome:

Acknowledgement

This package was inspired by akoumjian's datefinder.

License

MIT