1.0.3 • Published 3 years ago

time-converter.js v1.0.3

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

Time Convertor

npm i time-converter.js

Usage

  • .ms()
  • .humanize()

Examples

const time = require('time-converter.js');

const humanizedTime = time.humanize(60000); //convert miliseconds into humanised time
console.log(humanizedTime); //return the value in string
const time = require('time-converter.js');

const miliseconds = time.ms('1 minute'); //convert humanised time into miliseconds
console.log(miliseconds); //return the value in integer