This package has been deprecated

Author message:

this package has been deprecated

const-ms

1.0.4 • Public • Published

Const-MS Is the better milisecond converter!

It is the most complete millisecond converter there is.

Instalation:

$ npm install const-ms

Statements:

const ms = require("const-ms");

Docs:

Methods:

To milisecond converter methods:

[ms].secondInMs(value)

ms.secondInMs(1);
//---> 1000

[ms].minuteInMs(value)

ms.minuteInMs(1);
//---> 60000

[ms].hourInMs(value)

ms.hourInMs(1)
//---> 3600000

[ms].dayInMs(value)

ms.dayInMs(1)
//---> 86400000

[ms].weekInMs(value)

ms.weekInMs(1)
//---> 604800000

[ms].monthInMs(value)

ms.monthInMs(1)
//---> 2592000000

//Do you can put the month days(30, or 31).
ms.monthInMs(1, 30)
//---> 2592000000
ms.monthInMs(1, 31)
//---> 2678400000

[ms].yearInMs(value)

ms.yearInMs(1)
//---> 31536000000

Package Sidebar

Install

npm i const-ms

Weekly Downloads

12

Version

1.0.4

License

ISC

Unpacked Size

4.05 kB

Total Files

3

Last publish

Collaborators

  • constant_