v1.0.0

Yeezy-Dates

A date parser for human-friendly inputs

Installation

npm i yeezy-dates

Usage

Use parseDate to get a list of possible dates for a given input.

import { parseDate } from 'yeezy-dates';
const suggestions = parseDate('tomorrow');
console.log(suggestions);

[ CONSOLE ]

[{
"label": "tomorrow",
"date": 2025-01-23T17:36:49.170Z
},
{
"label": "tomorrow at 1am",
"date": 2025-01-23T01:00:00.000Z
},
{
"label": "tomorrow at 6pm",
"date": 2025-01-23T18:00:00.000Z
}]

Acknowledgements

Built on top of chrono-node