{"_id":"algolia-ms","_rev":"3-a2b7354514edfbc1cbe9b2f9d80e89bb","name":"algolia-ms","description":"Tiny ms conversion utility","dist-tags":{"latest":"0.7.1-fix-future-reserved-words"},"versions":{"0.7.1-fix-future-reserved-words":{"name":"algolia-ms","version":"0.7.1-fix-future-reserved-words","description":"Tiny ms conversion utility","repository":{"type":"git","url":"git://github.com/guille/ms.js.git"},"main":"./index","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"component":{"scripts":{"ms/index.js":"index.js"}},"license":"MIT","gitHead":"cbd227a1dd1d64be98ad003ece882e8101bcd115","bugs":{"url":"https://github.com/guille/ms.js/issues"},"homepage":"https://github.com/guille/ms.js#readme","_id":"algolia-ms@0.7.1-fix-future-reserved-words","scripts":{},"_shasum":"fa2e440152706a055283ac95468beee3bea5f2b3","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"vvo","email":"vincent.voyer@gmail.com"},"maintainers":[{"name":"vvo","email":"vincent.voyer@gmail.com"}],"dist":{"shasum":"fa2e440152706a055283ac95468beee3bea5f2b3","tarball":"https://registry.npmjs.org/algolia-ms/-/algolia-ms-0.7.1-fix-future-reserved-words.tgz","integrity":"sha512-cBZupbZgCN7rYk++Sl6rHRvvV8TYVYfw2DttjCJEyIc3vN3a08CZUAxUBy8J7FpIbeN0zEnBhQSZZkahkmBCuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt6JzLy0IlP0a6UQYLZs0t0zDM/wohZy2wlNknKRktDAIgZxCX2qtXZ52WE3JgJofJHpggmDniy+NKcktICAP8A/U="}]}}},"readme":"# ms.js: miliseconds conversion utility\n\n```js\nms('2 days')  // 172800000\nms('1d')      // 86400000\nms('10h')     // 36000000\nms('2.5 hrs') // 9000000\nms('2h')      // 7200000\nms('1m')      // 60000\nms('5s')      // 5000\nms('100')     // 100\n```\n\n```js\nms(60000)             // \"1m\"\nms(2 * 60000)         // \"2m\"\nms(ms('10 hours'))    // \"10h\"\n```\n\n```js\nms(60000, { long: true })             // \"1 minute\"\nms(2 * 60000, { long: true })         // \"2 minutes\"\nms(ms('10 hours'), { long: true })    // \"10 hours\"\n```\n\n- Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](http://nodejs.org/download).\n- If a number is supplied to `ms`, a string with a unit is returned.\n- If a string that contains the number is supplied, it returns it as\na number (e.g: it returns `100` for `'100'`).\n- If you pass a string with a number and a valid unit, the number of\nequivalent ms is returned.\n\n## License\n\nMIT\n","maintainers":[{"name":"vvo","email":"vincent.voyer@gmail.com"}],"time":{"modified":"2022-06-13T02:37:41.106Z","created":"2015-07-08T13:58:40.659Z","0.7.1-fix-future-reserved-words":"2015-07-08T13:58:40.659Z"},"homepage":"https://github.com/guille/ms.js#readme","repository":{"type":"git","url":"git://github.com/guille/ms.js.git"},"bugs":{"url":"https://github.com/guille/ms.js/issues"},"license":"MIT","readmeFilename":"README.md"}