{"_id":"human-interval","_rev":"1349283","name":"human-interval","description":"Human readable time measurements","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"time":{"modified":"2021-11-02T05:44:40.000Z","created":"2013-10-25T20:50:53.463Z","2.0.1":"2021-01-16T23:29:06.879Z","2.0.0":"2020-10-16T08:59:12.647Z","1.0.0":"2019-11-24T20:29:10.397Z","0.1.6":"2016-05-11T15:08:03.757Z","0.1.5":"2015-07-30T23:50:19.389Z","0.1.4":"2014-04-06T21:08:43.225Z","0.1.3":"2014-01-04T18:26:34.167Z","0.1.2":"2014-01-03T20:21:07.828Z","0.1.1":"2013-10-28T16:41:05.872Z","0.1.0":"2013-10-25T20:50:53.463Z"},"users":{"zeke":true,"mdemo":true,"lvivier":true,"briandela":true,"goliatone":true,"acollins-ts":true},"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"repository":{"type":"git","url":"git://github.com/agenda/human-interval.git"},"versions":{"2.0.1":{"name":"human-interval","version":"2.0.1","description":"Human readable time measurements","main":"index.js","types":"index.d.ts","scripts":{"test":"xo && ava -v"},"repository":{"type":"git","url":"git://github.com/agenda/human-interval.git"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/agenda/human-interval/issues"},"dependencies":{"numbered":"^1.1.0"},"devDependencies":{"ava":"3.15.0","xo":"0.37.1"},"xo":{"space":2,"rules":{"space-before-function-paren":["error","never"],"max-params":["error",5],"max-nested-callbacks":["error",5]},"envs":["node"]},"gitHead":"37f3576fabeb2d89b14edf5bad9d6c5fac40ba65","homepage":"https://github.com/agenda/human-interval#readme","_id":"human-interval@2.0.1","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"shasum":"655baf606c7067bb26042dcae14ec777b099af15","size":4036,"noattachment":false,"key":"/human-interval/-/human-interval-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-2.0.1.tgz"},"_npmUser":{"name":"simison","email":"mikael@ihminen.org"},"directories":{},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/human-interval_2.0.1_1610839746769_0.6525020370072172"},"_hasShrinkwrap":false,"publish_time":1610839746879,"_cnpm_publish_time":1610839746879},"2.0.0":{"name":"human-interval","version":"2.0.0","description":"Human readable time measurements","main":"index.js","scripts":{"test":"xo && ava -v"},"repository":{"type":"git","url":"git://github.com/agenda/human-interval.git"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/agenda/human-interval/issues"},"dependencies":{"numbered":"^1.1.0"},"devDependencies":{"ava":"3.13.0","xo":"0.33.1"},"xo":{"space":2,"rules":{"space-before-function-paren":["error","never"],"max-params":["error",5],"max-nested-callbacks":["error",5]},"envs":["node"]},"gitHead":"4462999084eb755a5abfb26d838119969d1cb280","homepage":"https://github.com/agenda/human-interval#readme","_id":"human-interval@2.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"shasum":"a9f4cedf4544005398c39767a484fdf062f4287a","size":3927,"noattachment":false,"key":"/human-interval/-/human-interval-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-2.0.0.tgz"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"_npmUser":{"name":"simison","email":"mikael@ihminen.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/human-interval_2.0.0_1602838752526_0.7847494657653395"},"_hasShrinkwrap":false,"publish_time":1602838752647,"_cnpm_publish_time":1602838752647},"1.0.0":{"name":"human-interval","version":"1.0.0","description":"Human readable time measurements","main":"index.js","scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git://github.com/agenda/human-interval.git"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/agenda/human-interval/issues"},"devDependencies":{"ava":"^2.0.0","xo":"^0.24.0"},"xo":{"space":2,"rules":{"space-before-function-paren":["error","never"],"max-params":["error",5],"max-nested-callbacks":["error",5]},"envs":["node"]},"gitHead":"14d78ec1f0797c2d64ea3b43afb2b11944d8bfd8","homepage":"https://github.com/agenda/human-interval#readme","_id":"human-interval@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"7ba00a15f3d94ab6a4c16f76060e4aa07c713019","size":3192,"noattachment":false,"key":"/human-interval/-/human-interval-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-1.0.0.tgz"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"_npmUser":{"name":"simison","email":"mikael@ihminen.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/human-interval_1.0.0_1574627350266_0.9117657895334932"},"_hasShrinkwrap":false,"publish_time":1574627350397,"_cnpm_publish_time":1574627350397},"0.1.6":{"name":"human-interval","version":"0.1.6","description":"Human readable time measurements","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rschmukler/human-interval.git"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/human-interval/issues"},"devDependencies":{"expect.js":"~0.2.0"},"gitHead":"8343affe68ef8a82b9910eef40637416e4cf8514","homepage":"https://github.com/rschmukler/human-interval#readme","_id":"human-interval@0.1.6","_shasum":"0057973454764c3abcbeb2aed612fc9644e68488","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"dist":{"shasum":"0057973454764c3abcbeb2aed612fc9644e68488","size":2453,"noattachment":false,"key":"/human-interval/-/human-interval-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-0.1.6.tgz"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/human-interval-0.1.6.tgz_1462979281194_0.2943024190608412"},"directories":{},"publish_time":1462979283757,"_cnpm_publish_time":1462979283757,"_hasShrinkwrap":false},"0.1.5":{"name":"human-interval","version":"0.1.5","description":"Human readable time measurements","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rschmukler/human-interval.git"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/human-interval/issues"},"devDependencies":{"expect.js":"~0.2.0"},"gitHead":"bf4775374a74492149fa0a02949b85a1ca5767a7","homepage":"https://github.com/rschmukler/human-interval#readme","_id":"human-interval@0.1.5","_shasum":"9418cfdbbebc5f0890c0f548896d410e0b9bce62","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"dist":{"shasum":"9418cfdbbebc5f0890c0f548896d410e0b9bce62","size":2397,"noattachment":false,"key":"/human-interval/-/human-interval-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-0.1.5.tgz"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"directories":{},"publish_time":1438300219389,"_cnpm_publish_time":1438300219389,"_hasShrinkwrap":false},"0.1.4":{"name":"human-interval","version":"0.1.4","description":"Human readable time measurements","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rschmukler/human-interval"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/human-interval/issues"},"devDependencies":{"expect.js":"~0.2.0"},"homepage":"https://github.com/rschmukler/human-interval","_id":"human-interval@0.1.4","dist":{"shasum":"219cfd7138812acd565a84e6dd511c38a414d014","size":2290,"noattachment":false,"key":"/human-interval/-/human-interval-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-0.1.4.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"directories":{},"publish_time":1396818523225,"_cnpm_publish_time":1396818523225,"_hasShrinkwrap":false},"0.1.3":{"name":"human-interval","version":"0.1.3","description":"Human readable time measurements","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rschmukler/human-interval"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/human-interval/issues"},"devDependencies":{"expect.js":"~0.2.0"},"readmeFilename":"README.md","_id":"human-interval@0.1.3","dist":{"shasum":"1b1779b149c495cf8c0f66ec6fe6712d9883a301","size":2237,"noattachment":false,"key":"/human-interval/-/human-interval-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"directories":{},"publish_time":1388859994167,"_cnpm_publish_time":1388859994167,"_hasShrinkwrap":false},"0.1.2":{"name":"human-interval","version":"0.1.2","description":"Human readable time measurements","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rschmukler/human-interval"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/human-interval/issues"},"devDependencies":{"expect.js":"~0.2.0"},"readmeFilename":"README.md","_id":"human-interval@0.1.2","dist":{"shasum":"97456a2497dbc3f80710633c54c05dda9b91abf3","size":2171,"noattachment":false,"key":"/human-interval/-/human-interval-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"directories":{},"publish_time":1388780467828,"_cnpm_publish_time":1388780467828,"_hasShrinkwrap":false},"0.1.1":{"name":"human-interval","version":"0.1.1","description":"Human readable time measurements","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rschmukler/human-interval"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/human-interval/issues"},"devDependencies":{"expect.js":"~0.2.0"},"readmeFilename":"README.md","_id":"human-interval@0.1.1","dist":{"shasum":"3db42784a4ac1d2fbd6435b3282ffd5b04914eda","size":2140,"noattachment":false,"key":"/human-interval/-/human-interval-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"directories":{},"publish_time":1382978465872,"_cnpm_publish_time":1382978465872,"_hasShrinkwrap":false},"0.1.0":{"name":"human-interval","version":"0.1.0","description":"Human readable time measurements","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/rschmukler/human-interval"},"keywords":["interval","time","date"],"author":{"name":"Ryan Schmukler","email":"ryan@slingingcode.com","url":"http://slingingcode.com/"},"license":"MIT","bugs":{"url":"https://github.com/rschmukler/human-interval/issues"},"devDependencies":{"expect.js":"~0.2.0"},"readmeFilename":"README.md","_id":"human-interval@0.1.0","dist":{"shasum":"c73444db1f19e2a5a9fd3a58bb8d672ec4850c1e","size":2017,"noattachment":false,"key":"/human-interval/-/human-interval-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/human-interval/download/human-interval-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"rschmukler","email":"ryan@slingingcode.com"},"maintainers":[{"name":"rschmukler","email":"ryan@slingingcode.com"},{"name":"simison","email":"mikael@ihminen.org"}],"directories":{},"publish_time":1382734253463,"_cnpm_publish_time":1382734253463,"_hasShrinkwrap":false}},"readme":"# Human Interval\nHuman-readable interval parser for Javascript.\n\nConverts words written in English to numbers by using [node-numbered](https://github.com/blakeembrey/node-numbered).\n\nOriginally inspired by [matthewmueller/date](http://github.com/matthewmueller/date).\n\n## Uses\n\nHuman Interval is used by job scheduling libraries such as [Agenda](https://github.com/Agenda/agenda#readme) and [Bree](https://jobscheduler.net). They are a job schedulers for Node.js with cron expression syntax, human-friendly times, Dates, and more!\n\n## Example usage\n\n```js\nconst humanInterval = require('human-interval');\n\nsetTimeout(() => {\n  // Do something!\n}, humanInterval('three minutes'));\n```\n\n## More sophisticated examples\n\nHuman Interval understands all of the following examples:\n\n```js\nhumanInterval('minute');\nhumanInterval('one minute');\nhumanInterval('1.5 minutes');\nhumanInterval('3 days and 4 hours');\nhumanInterval('3 days, 4 hours and 36 seconds');\nhumanInterval('4 months, 3 days, 5 hours and forty-five seconds');\n```\n\n## The full list\n\n### Units\n\nSupports the following units in the plural and singular forms:\n\n- `seconds`\n- `minutes`\n- `hours`\n- `days`\n- `weeks`\n- `months` — assumes 30 days\n- `years` — assumes 365 days\n\n### Wordy numbers\n\nSupports numbers being written out in English words.\n\n```js\nhumanInterval('five minutes');\n```\n\n### Hyphenated numbers\n\nSupports hyphenated numbers.\n\n```js\nhumanInterval('twenty-five seconds');\n```\n\n### Negative numbers\n\nSupports negative numbers if the time starts with a `-` symbol immediately followed by a number.\n\n```js\nhumanInterval('-2 minutes');\n```\n\n# License\n[The MIT License](LICENSE.md)\n","_attachments":{},"homepage":"https://github.com/agenda/human-interval#readme","bugs":{"url":"https://github.com/agenda/human-interval/issues"},"license":"MIT"}