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 🙏

© 2024 – Pkg Stats / Ryan Hefner

eazy-time

v2.0.3

Published

Simplified way to get the 'time'.

Downloads

7

Readme

Eazy Time

⏳ Getting Started

Just for quick explanation please check the examples:

const one_sec = 1000;
const one_min = one_sec * 60;
const one_hour = one_min * 60;
const one_day_v1 = one_hour * 24;

//OR
const one_day_v2 = 1000 * 60 * 60 * 24;

//OR 🥳
const one_day_v3 = EazyTime.OneDay;

//OR 🥳
const one_day_v4 = EazyTime.Day(1);

So, eazy-time is a more simplified way to get the "time".

⬇️ Install

npm install eazy-time --save

⏰ Usage

Importing package

import EazyTime from "eazy-time";

Now, you can get static field and functions for timestamp generator.

Ms

Generator

const ms = EazyTime.Ms(120);

Static Fields Table

|Property | Value | Test | |--------------------------|--------|--------| |OneMs|1| 🧪 |TwoMs|2| 🧪 |ThreeMs|3| 🧪 |FourMs|4| 🧪 |FiveMs|5| 🧪 |SixMs|6| 🧪 |SevenMs|7| 🧪 |EightMs|8| 🧪 |NineMs|9| 🧪 |TenMs|10| 🧪

Sec

Generator

const sec = EazyTime.Sec(45);

Static Fields Table

|Property | Value | Test | |--------------------------|--------|--------| |OneSec |1000 |🧪 |TwoSec |2000 |🧪 |ThreeSec |3000 |🧪 |FourSec |4000 |🧪 |FiveSec |5000 |🧪 |SixSec |6000 |🧪 |SevenSec |7000 |🧪 |EightSec |8000 |🧪 |NineSec |9000 |🧪 |TenSec |10000 |🧪

Min

Generator

const min = EazyTime.Min(90);

Static Fields Table

|Property | Value | Test | |--------------------------|--------|--------| |OneMin |60000 |🧪 |TwoMin |120000 |🧪 |ThreeMin |180000 |🧪 |FourMin |240000 |🧪 |FiveMin |300000 |🧪 |SixMin |360000 |🧪 |SevenMin |420000 |🧪 |EightMin |480000 |🧪 |NineMin |540000 |🧪 |TenMin |600000 |🧪

Hour

Generator

const hour = EazyTime.Hour(36);

Static Fields Table

|Property | Value | Test | |--------------------------|--------|--------| |OneHour |3600000 |🧪 |TwoHour |7200000 |🧪 |ThreeHour |10800000 |🧪 |FourHour |14400000 |🧪 |FiveHour |18000000 |🧪 |SixHour |21600000 |🧪 |SevenHour |25200000 |🧪 |EightHour |28800000 |🧪 |NineHour |32400000 |🧪 |TenHour |36000000 |🧪

Day

Generator

const day = EazyTime.Day(9);

Static Fields Table

|Property | Value | Test | |--------------------------|--------|--------| |OneDay |86400000 |🧪 |TwoDay |172800000 |🧪 |ThreeDay |259200000 |🧪 |FourDay |345600000 |🧪 |FiveDay |432000000 |🧪 |SixDay |518400000 |🧪 |SevenDay |604800000 |🧪 |EightDay |691200000 |🧪 |NineDay |777600000 |🧪 |TenDay |864000000 |🧪

Todo

| Task | Status | |-------------------------- |-------- | | Write test cases for MS | ✅ | | Write test cases for Sec | ✅ | | Write test cases for Min | ✅ | | Create "Contribute" file | ⏱️ | | Add license | ✅ |