1.0.2 • Published 6 years ago
to-mils v1.0.2
to-mils
to-mils is a small module to convert english to milliseconds.
it is specifically designed to be used by setTimeout()
and setInterval()
setTimeout(() =>{
console.log('Hey!')
}, toMils('10 min'))
Installation
Install with yarn or npm
yarn add to-mils
Usage
const toMils = require('to-mils')
console.log(toMils('2 hrs'))