1.0.0 • Published 5 years ago

nlp-date v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

nlp-date

A simple natural language date parser written in Javascript

Table of Contents

Background

Your users might want to enter dates in a more friendly format, like March 26th. The library parses the text and returns a new date instance for that date. It will default to current year if it is not provided.

The library has no external dependencies and it aims to handle simple use cases.

Install

npm install nlp-date

Usage

const parse = require('nlp-date')
console.log(parse('March 26th'))

Maintainers

@emilos.

Contributing

All contributions are highly appreciated! Especially PRs with specs.

License

MIT