1.0.1 • Published 3 years ago

kto-ms v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

kto-ms

It converts whatever string into milliseconds which is entirely based off of comparing two Date objects into number! As long as it is a valid string!

Installation

npm i kto-ms --save

Usage

const ms = require('kto-ms')

console.log(ms('1s')) // 1000
console.log(ms('1 s')) // 1000
console.log(ms('1 days')) // 86400000
console.log(ms('1 year')) // 31536000000
1.0.1

3 years ago

1.0.0

3 years ago