1.0.2 • Published 6 years ago

to-mils v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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'))
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago