Socket
Socket
Sign inDemoInstall

nlp-date

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nlp-date

A simple natural language date parser written in JavaScript


Version published
Weekly downloads
1
Maintainers
1
Install size
10.7 kB
Created
Weekly downloads
 

Readme

Source

nlp-date

A simple natural language date parser written in Javascript

Table of Contents

  • Background
  • Install
  • Usage
  • Maintainers
  • Contributing
  • License

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

Keywords

FAQs

Last updated on 19 Apr 2019

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