numer
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Numer

Number to datetime helpers. This adds a series of methods onto numbers to turn datetime intervals into millisecond values.

NOTE: This adds methods onto Number#prototype.

Example

(3).minutes();
// => 180000
(3).days();
// => 259200000

Installation

Install this package through npm.

npm install numer

Then, either include the source for this project in a script tag, or you may also use this as a CommonJS module and require it into your project. It only needs to be required once, and the module does not export anything.

Approximate values

Months and years are just approximations. A month is considered 30 days, and a year is considered 365 days.

Readme

Keywords

none

Package Sidebar

Install

npm i numer

Weekly Downloads

0

Version

1.1.2

License

ISC

Last publish

Collaborators

  • bioball