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 🙏

© 2026 – Pkg Stats / Ryan Hefner

date-time-plugin-minify

v1.1.8

Published

A date time pulgin modify date and time in easy formats

Downloads

50

Readme

date-time-plugin-minify, tiny plugin

Format Date using Date plugin

Chainable Date Formatter Plugin

**Features - ** Format a date easily Add days and months Support for locales and timezones Fully chainable methods Tiny, no external dependencies

**Installation - **

npm i date-time-plugin-minify

or

yarn add date-time-plugin-minify

Save as dev dependency

npm i --save-dev date-time-plugin-minify

Usage -

import {DateFormatter, GetFormattedDate, getDiffBetweenDates} from 'date-time-plugin-minify';
New API -  DateFormatter with timeZone and locale support.

// Accept param -  
// date either date object or string, 
// formatToCovert(In which format you want to convert date), 
// currentDateFormat(current date format as first param what is format of that date)

const df = new DateFormatter('04/24/2026', 'YYYY/MM/DD HH:mm:ss', 'MM/DD/YYYY'); 

console.log(df.formatDate().getFormatted()); // 2026/04/24 00:00:00

// TimeZone Support 
console.log(df.TZ('America/Denver')) // "04/23/2026, 12:30:00 PM";

// UTC Time
console.log(df.TZ("UTC")) // 04/23/2026, 06:30:00 PM

// locale support
console.log(df.TZ("Europe/Berlin", "de-DE")) // 23.04.2026, 20:30:00 // default locale "en-US"

~~formateDate~~

deprecated formatDate not support from version 1.1.7


GetFormattedDate - 

const dateObj = new GetFormattedDate(new Date(), "YYYYY/MM/DD"); // return {date: "2025/05/12"}

const updatedDate = dateObj.addDays(5).addMonths(2).date; // support chaining methods.

// Chain methods

console.log(updatedDate); // new Date object 5 days and 2 months later


Get Difference between dates - 

// params firstDate: Date | string, Second Date : Date | string
getDiffBetweenDates("25/05/2025", "28/05/2025", options ? :{format: "DD/MM/YYYY"})  // default format DD/MM/YYYY, provide format as 3rd param"
 return {
            seconds: diffSec, // 43943
            minutes: diffMin, // 4343
            hours: diffHours, // 72
            days: diffDays, // 3
            months: years * 12 + months, // 0
            years: years // 0
      }

~~const formatDateDate = formatDate(new Date(), "YYYY/MM/DD")~~

~~console.log(formatDateDate)~~;

** -

  • Now Support for passing locale (like en-US, fr-FR)
  • Now Support for passing timezone (like Asia/Kolkata, America/New_York)**

**(Coming Soon) - -Locale-aware date formatting

  • Relative time support
  • Timezone conversion **

License MIT License © 2025