nlp-date

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i nlp-date

      Weekly Downloads

      1

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      10.9 kB

      Total Files

      6

      Last publish

      Collaborators

      • emilos