npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

yeezy-dates

v1.0.1

Published

Yeezy-Dates is a simple date parser that helps you quickly interpret human-friendly date related input strings. It provides suggestions for potential interpretations of the input, making it ideal for applications requiring flexible date handling and natur

Readme

Yeezy-Dates

Yeezy-Dates is a simple date parser that helps you quickly interpret human-friendly date related input strings. It provides suggestions for potential interpretations of the input, making it ideal for applications requiring flexible date handling and natural language processing.

Features

  • Parses natural language date strings into meaningful suggestions.
  • Returns an array of suggestions, where each suggestion includes a descriptive label and the corresponding JavaScript Date object.

Installation

To install yeezy-dates, use npm or yarn:

npm install yeezy-dates

or

yarn add yeezy-dates

Usage

Yeezy-Dates exposes a single function parseDate(), which takes an input string and returns an array of suggestions.

Example

const { parseDate } = require('yeezy-dates');

const input = "tomo";
const suggestions = parseDate(input);

console.log(suggestions);

Output:

[
    {
        "label": "tomorrow",
        "date": "2025-01-23T15:59:25.525Z"
    },
    {
        "label": "tomorrow at midnight",
        "date": "2025-01-22T18:30:00.000Z"
    },
    {
        "label": "tomorrow at noon",
        "date": "2025-01-23T06:30:00.000Z"
    },
    {
        "label": "tomorrow at 8am",
        "date": "2025-01-23T02:30:00.000Z"
    },
    {
        "label": "tomorrow at 9am",
        "date": "2025-01-23T03:30:00.000Z"
    }
]

API

parseDate(input: string): Array<{ label: string, date: Date }>

  • input: A natural language date string (e.g., "tomo", "next Monday", "5 minutes ago").
  • Returns: An array of suggestions. Each suggestion is an object with:
    • label: A string describing the interpretation of the input.
    • date: A JavaScript Date object representing the corresponding date and time.

Use Cases

  • Enhancing user experience in scheduling or planning applications.
  • Building smart input fields for dates.
  • Natural language date interpretation for chatbots or virtual assistants.

Contributing Guidelines

Code Style

  • Follow the existing code style and conventions.
  • Use meaningful variable and function names.
  • Write comments where necessary, especially for complex logic.

Commit Messages

  • Use clear and concise commit messages in imperative form.
  • Use npm run commit to create a commit message following the conventional commit format.

Pull Requests

  1. Ensure your branch is up to date with the main branch before creating a pull request:
    git checkout main
    git pull origin main
    git checkout -b your-branch-name
  2. Add meaningful changes and commit them.
  3. Push your branch and create a pull request:
    git push origin your-branch-name
  4. Include a detailed description of your changes in the pull request.
  5. Link any related issues in your pull request description.