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

another-time

v1.0.1

Published

Library to create a parallel timeline with delay

Downloads

4

Readme

Another Time

Another time is a little library which generates a fake date timer.

Installation

$ npm install another-time

Usage

const { createTimer } = require('another-time')

createTimer().start()

Options Reference

createTimer([options], [onTick = function () {}])

options.secondsPerSecond : Number

Number of seconds that are computed every real second.

options.minutePerSecond : Number

Number of minutes that are computed every real second.

options.hourPerSecond : Number

Number of hours that are computed every real second.

options.hourPerMinute : Number

Number of hours that are computed every real minute.

options.dayPerSecond : Number

Number of days that are computed every real second.

options.dayPerMinute : Number

Number of days that are computed every real minute.

options.dayPerHour : Number

Number of days that are computed every real hour.

options.weekPerSecond : Number

Number of weeks that are computed every real second.

options.weekPerMinute : Number

Number of weeks that are computed every real minute.

options.weekPerHour : Number

Number of weeks that are computed every real hour.

options.weekPerDay : Number

Number of weeks that are computed every real day.

options.monthPerSecond : Number

Number of months that are computed every real second.

options.monthPerMinute : Number

Number of months that are computed every real minute.

options.monthPerHour : Number

Number of months that are computed every real hour.

options.monthPerDay : Number

Number of months that are computed every real day.

options.yearPerSecond : Number

Number of years that are computed every real second.

options.yearPerMinute : Number

Number of years that are computed every real minute.

options.yearPerHour : Number

Number of years that are computed every real hour.

options.yearPerDay : Number

Number of years that are computed every real day.

options.yearPerMonth : Number

Number of years that are computed every real month.

options.initialSecond : Number

Seconds of the initial fake date time.

options.initialMinute : Number

Minutes of the initial fake date time.

options.initialHour : Number

Hour of the initial fake date time.

options.initialDay : Number

Day of the initial fake date time.

options.initialMonth : Number

Month of the initial fake date time.

options.initialYear : Number

Year of the initial fake date time.

options.weekLength : Number

Number of fake days in a fake week.

options.monthDays : Array<Number>

List of number of fake days inside fake months. Each item is a number of fake days, fake months don't have names, they are just represented by the index in the array.

onTick : function (FakeDate)

Callback to call each real second, the first and only argument is the fake date object containing the structure of the fake date, for example :

{
  "second": 2,
  "minute": 10,
  "hour": 5,
  "day": 1,
  "month": 12,
  "year": 2020
}

License

This software is released under the GPL-v3.0 License. See LICENSE