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

1.1.4 • Public • Published

Image Image

Image

News

- Fixed unknown time error.

Use

const { timeToMs, parseMs, msToTime } = require('basic-ms');

//Time To Ms
timeToMs('1h'); // 3600000

//Ms To Time
msToTime(3600000); // 1h

//parseMs
parseMs(3600000); // { years: 0, months: 0, weeks: 0, days: 0, hours: 1, minutes: 60, seconds: 3600, milliseconds: 0 }

Package Sidebar

Install

npm i basic-ms

Weekly Downloads

14

Version

1.1.4

License

Apache-2.0

Unpacked Size

18.3 kB

Total Files

21

Last publish

Collaborators

  • hanzydev