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

1.0.2 • Public • Published

msx

NPM Downloads

A minmalistic ms conversion library

Examples

Use the following command to install the msxlib package via npm:

npm install msxlib

Once installed, you can import and use the library in your code:

import msx from "msxlib";

console.log(MSX.parse("1ms")); // 1
console.log(MSX.parse("1s")); // 1000
console.log(MSX.parse("1m")); // 60000
console.log(MSX.parse("1h")); // 3600000
console.log(MSX.stringify(1)); // 1.00ms

For more information on how to use the msxlib package, please refer to the documentation.

NOTE: doesn't work with javascript only typescript at the moment

Package Sidebar

Install

npm i msxlib

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

6.23 kB

Total Files

7

Last publish

Collaborators

  • ryzmae