timegrify

1.0.0 • Public • Published

timegrify

npm build status styled with standard made with lass license

Work with the time as if you were human

Install

npm install timegrify

Usage

const timegrify = require('timegrify');
 
timegrify('2 years').toMilis() // => 63072000000

Supported values

YEAR DAY HOURS
year day hour
years days hours

Methods

For now only has one method. Future versions will support more methods

Method Description
.toMilis() Return the value transformed to milliseconds
.toSec() Return the value transformed to seconds

Contributors

Name
Christofer Flores

License

MIT © Christofer Flores

Package Sidebar

Install

npm i timegrify

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

10.1 kB

Total Files

15

Last publish

Collaborators

  • crystal-stream