Intro
Installable via npm install --save human-to-milliseconds
, it can also be used directly in the browser.
Download
The source is available for download from GitHub. Alternatively, you can install using npm:
$ npm install --save human-to-milliseconds
You can then require()
human-to-milliseconds as normal:
const humanToMilliseconds = require('human-to-milliseconds')
In the Browser
Human-to-milliseconds should work in any ES2015 environment out of the box.
Usage:
<script type="text/javascript" src="index.js"></script>
The portable versions of human-to-milliseconds, including index.js
and index.min.js
, are included in the /dist
folder. Human-to-milliseconds can also be found on unkpkg.com under