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

1.0.1 • Public • Published

kto-ms

Discord Server

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

Readme

Keywords

Package Sidebar

Install

npm i kto-ms

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

25.2 kB

Total Files

6

Last publish

Collaborators

  • kaisei-kto