{"_id":"ms","_rev":"92-4869d840f41a7cef33adccc83496f933","name":"ms","description":"Tiny milisecond conversion utility","dist-tags":{"latest":"0.7.2"},"versions":{"0.1.0":{"name":"ms","version":"0.1.0","description":"Tiny ms conversion utility","main":"./ms","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"_id":"ms@0.1.0","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"f21fac490daf1d7667fd180fe9077389cc9442b2","tarball":"https://registry.npmjs.org/ms/-/ms-0.1.0.tgz"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.2.0":{"name":"ms","version":"0.2.0","description":"Tiny ms conversion utility","main":"./ms","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"_id":"ms@0.2.0","dist":{"shasum":"6edfc5a063471f7bfd35a5831831c24275ce9dc5","tarball":"https://registry.npmjs.org/ms/-/ms-0.2.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.3.0":{"name":"ms","version":"0.3.0","description":"Tiny ms conversion utility","main":"./ms","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"_id":"ms@0.3.0","dist":{"shasum":"03edc348d613e66a56486cfdac53bcbe899cbd61","tarball":"https://registry.npmjs.org/ms/-/ms-0.3.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.4.0":{"name":"ms","version":"0.4.0","description":"Tiny ms conversion utility","main":"./index","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"_id":"ms@0.4.0","dist":{"shasum":"77ade5470b099bb2d83e232c25763c18cd6963f1","tarball":"https://registry.npmjs.org/ms/-/ms-0.4.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.5.0":{"name":"ms","version":"0.5.0","description":"Tiny ms conversion utility","main":"./index","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"_id":"ms@0.5.0","dist":{"shasum":"8e52e7e1bf521f9cea30f726de958822eab0ee27","tarball":"https://registry.npmjs.org/ms/-/ms-0.5.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.5.1":{"name":"ms","version":"0.5.1","description":"Tiny ms conversion utility","main":"./index","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"component":{"scripts":{"ms/index.js":"index.js"}},"_id":"ms@0.5.1","dist":{"shasum":"98058c8f9c64854d1703ab92bf3f1dcc8e713b4c","tarball":"https://registry.npmjs.org/ms/-/ms-0.5.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.6.0":{"name":"ms","version":"0.6.0","description":"Tiny ms conversion utility","main":"./index","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"component":{"scripts":{"ms/index.js":"index.js"}},"_id":"ms@0.6.0","dist":{"shasum":"21dc16a7d1dc2d8ed244dc0e6a71a5c2612b623b","tarball":"https://registry.npmjs.org/ms/-/ms-0.6.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.6.1":{"name":"ms","version":"0.6.1","description":"Tiny ms conversion utility","main":"./index","devDependencies":{"mocha":"*","expect.js":"*","serve":"*"},"component":{"scripts":{"ms/index.js":"index.js"}},"_id":"ms@0.6.1","dist":{"shasum":"ed57e5f3fc736e09afc85017c5c912a47bc59ab9","tarball":"https://registry.npmjs.org/ms/-/ms-0.6.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.6.2":{"name":"ms","version":"0.6.2","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"}},"bugs":{"url":"https://github.com/guille/ms.js/issues"},"_id":"ms@0.6.2","dist":{"shasum":"d89c2124c6fdc1353d65a8b77bf1aac4b193708c","tarball":"https://registry.npmjs.org/ms/-/ms-0.6.2.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"directories":{}},"0.7.0":{"name":"ms","version":"0.7.0","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"}},"gitHead":"1e9cd9b05ef0dc26f765434d2bfee42394376e52","bugs":{"url":"https://github.com/guille/ms.js/issues"},"homepage":"https://github.com/guille/ms.js","_id":"ms@0.7.0","scripts":{},"_shasum":"865be94c2e7397ad8a57da6a633a6e2f30798b83","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"dist":{"shasum":"865be94c2e7397ad8a57da6a633a6e2f30798b83","tarball":"https://registry.npmjs.org/ms/-/ms-0.7.0.tgz"},"directories":{}},"0.7.1":{"name":"ms","version":"0.7.1","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"}},"gitHead":"713dcf26d9e6fd9dbc95affe7eff9783b7f1b909","bugs":{"url":"https://github.com/guille/ms.js/issues"},"homepage":"https://github.com/guille/ms.js","_id":"ms@0.7.1","scripts":{},"_shasum":"9cd13c03adbff25b65effde7ce864ee952017098","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"maintainers":[{"name":"rauchg","email":"rauchg@gmail.com"}],"dist":{"shasum":"9cd13c03adbff25b65effde7ce864ee952017098","tarball":"https://registry.npmjs.org/ms/-/ms-0.7.1.tgz"},"directories":{}},"0.7.2":{"name":"ms","version":"0.7.2","description":"Tiny milisecond conversion utility","repository":{"type":"git","url":"git+https://github.com/zeit/ms.git"},"main":"./index","files":["index.js"],"scripts":{"test":"xo && mocha test/index.js","test-browser":"serve ./test"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^3.0.2","serve":"^1.4.0","xo":"^0.17.0"},"component":{"scripts":{"ms/index.js":"index.js"}},"xo":{"space":true,"semicolon":false,"envs":["mocha"],"rules":{"complexity":0}},"gitHead":"ac92a7e0790ba2622a74d9d60690ca0d2c070a45","bugs":{"url":"https://github.com/zeit/ms/issues"},"homepage":"https://github.com/zeit/ms#readme","_id":"ms@0.7.2","_shasum":"ae25cf2512b3885a1d95d7f037868d8431124765","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"leo","email":"leo@zeit.co"},"dist":{"shasum":"ae25cf2512b3885a1d95d7f037868d8431124765","tarball":"https://registry.npmjs.org/ms/-/ms-0.7.2.tgz"},"maintainers":[{"name":"leo","email":"leo@zeit.co"},{"name":"rauchg","email":"rauchg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/ms-0.7.2.tgz_1477383407940_0.4743474116548896"},"directories":{}}},"readme":"# ms\n\n[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![Slack Channel](https://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/)\n\nUse this package to easily convert various time formats to milliseconds.\n\n## Examples\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('1y') // 31557600000\nms('100') // 100\n```\n\n### Convert from milliseconds\n\n```js\nms(60000) // \"1m\"\nms(2 * 60000) // \"2m\"\nms(ms('10 hours')) // \"10h\"\n```\n\n### Time format written-out\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## Features\n\n- Works both in [node](https://nodejs.org) and in the browser.\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 a number (e.g.: it returns `100` for `'100'`).\n- If you pass a string with a number and a valid unit, the number of equivalent ms is returned.\n\n## Caught a bug?\n\n1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device\n2. Link the package to the global module directory: `npm link`\n3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms!\n\nAs always, you can run the tests using: `npm test`\n","maintainers":[{"name":"leo","email":"leo@zeit.co"},{"name":"rauchg","email":"rauchg@gmail.com"}],"time":{"modified":"2016-12-30T03:24:21.467Z","created":"2011-12-21T19:38:08.664Z","0.1.0":"2011-12-21T19:38:26.538Z","0.2.0":"2012-09-03T20:33:06.093Z","0.3.0":"2012-09-07T20:36:45.931Z","0.4.0":"2012-10-22T17:01:26.046Z","0.5.0":"2012-11-10T00:39:49.944Z","0.5.1":"2013-02-24T20:27:27.010Z","0.6.0":"2013-03-15T15:26:35.127Z","0.6.1":"2013-05-10T15:38:08.059Z","0.6.2":"2013-12-05T15:57:45.292Z","0.7.0":"2014-11-24T07:59:08.195Z","0.7.1":"2015-04-20T23:38:57.957Z","0.7.2":"2016-10-25T08:16:49.773Z"},"users":{"285858315":true,"dodo":true,"aaron":true,"pid":true,"hughsk":true,"eknkc":true,"forbeslindesay":true,"tur-nr":true,"humantriangle":true,"yasinaydin":true,"silas":true,"tunnckocore":true,"coderaiser":true,"fgribreau":true,"awaterma":true,"robermac":true,"subso":true,"rdcl":true,"dimd13":true,"theuves":true,"stretchgz":true,"battlemidget":true,"pensierinmusica":true,"mcortesi":true,"pandao":true,"cshao":true,"intuitivcloud":true,"bapinney":true,"dac2205":true,"jerrywu":true,"crazyorr":true,"jesusgoku":true,"wangnan0610":true,"algonzo":true,"detj":true,"sedge":true,"hugojosefson":true,"spanser":true,"danielbankhead":true,"princetoad":true,"shanewholloway":true,"snowdream":true,"shlomi":true,"xieranmaya":true,"francisbrito":true,"andreaspizsa":true,"largepuma":true,"isaacvitor":true,"manikantag":true,"cbetancourt":true,"zoomyzoom":true,"ash":true,"neo1":true,"michalskuza":true,"writeosahon":true,"rocket0191":true,"lestad":true,"mojaray2k":true,"jondotsoy":true,"ahsanshafiq":true,"miguhruiz":true,"seangenabe":true},"repository":{"type":"git","url":"git+https://github.com/zeit/ms.git"},"bugs":{"url":"https://github.com/zeit/ms/issues"},"readmeFilename":"README.md","homepage":"https://github.com/zeit/ms#readme","license":"MIT","_attachments":{},"_etag":"W/\"5865d365-2c43\"","_lastModified":"Fri, 30 Dec 2016 03:24:21 GMT"}