{"maintainers":[{"name":"leo","email":"leo@zeit.co"},{"name":"rauchg","email":"rauchg@gmail.com"}],"dist-tags":{"latest":"2.0.0"},"description":"Tiny milisecond conversion utility","readme":"# ms\n\n[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms)\n[![Slack Channel](http://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","repository":{"type":"git","url":"git+https://github.com/zeit/ms.git"},"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,"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,"mikestaub":true,"panlw":true,"hugovila":true,"dpjayasekara":true,"yatsu":true,"abhisekp":true,"daizch":true,"jondashkyle":true,"lichangwei":true,"xinwangwang":true,"ssljivic":true,"terrychan":true,"l3au":true,"brend":true,"nisimjoseph":true,"raycharles":true,"travis346":true},"bugs":{"url":"https://github.com/zeit/ms/issues"},"license":"MIT","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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":{}},"0.7.3":{"name":"ms","version":"0.7.3","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":"5.0.1","xo":"0.17.0"},"component":{"scripts":{"ms/index.js":"index.js"}},"xo":{"space":true,"semicolon":false,"envs":["mocha"],"rules":{"complexity":0}},"gitHead":"2006a7706041443fcf1f899b5752677bd7ae01a8","bugs":{"url":"https://github.com/zeit/ms/issues"},"homepage":"https://github.com/zeit/ms#readme","_id":"ms@0.7.3","_shasum":"708155a5e44e33f5fd0fc53e81d0d40a91be1fff","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"leo","email":"leo@zeit.co"},"dist":{"shasum":"708155a5e44e33f5fd0fc53e81d0d40a91be1fff","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/ms/-/ms-0.7.3.tgz"},"maintainers":[{"name":"leo","email":"leo@zeit.co"},{"name":"rauchg","email":"rauchg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ms-0.7.3.tgz_1489010366101_0.14404030703008175"},"directories":{}},"1.0.0":{"name":"ms","version":"1.0.0","description":"Tiny milisecond conversion utility","repository":{"type":"git","url":"git+https://github.com/zeit/ms.git"},"main":"./index","files":["index.js"],"scripts":{"precommit":"lint-staged","lint":"eslint lib/* bin/*","test":"mocha tests.js"},"eslintConfig":{"extends":"eslint:recommended","env":{"node":true,"es6":true}},"lint-staged":{"*.js":["npm run lint","prettier --single-quote --write","git add"]},"license":"MIT","devDependencies":{"eslint":"3.18.0","expect.js":"0.3.1","husky":"0.13.2","lint-staged":"3.4.0","mocha":"3.0.2"},"gitHead":"7daf984a9011e720cc3c165ed82c4506f3471b37","bugs":{"url":"https://github.com/zeit/ms/issues"},"homepage":"https://github.com/zeit/ms#readme","_id":"ms@1.0.0","_shasum":"59adcd22edc543f7b5381862d31387b1f4bc9473","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"leo","email":"leo@zeit.co"},"dist":{"shasum":"59adcd22edc543f7b5381862d31387b1f4bc9473","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/ms/-/ms-1.0.0.tgz"},"maintainers":[{"name":"leo","email":"leo@zeit.co"},{"name":"rauchg","email":"rauchg@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ms-1.0.0.tgz_1489959793252_0.42147551802918315"},"directories":{}},"2.0.0":{"name":"ms","version":"2.0.0","description":"Tiny milisecond conversion utility","repository":{"type":"git","url":"git+https://github.com/zeit/ms.git"},"main":"./index","files":["index.js"],"scripts":{"precommit":"lint-staged","lint":"eslint lib/* bin/*","test":"mocha tests.js"},"eslintConfig":{"extends":"eslint:recommended","env":{"node":true,"es6":true}},"lint-staged":{"*.js":["npm run lint","prettier --single-quote --write","git add"]},"license":"MIT","devDependencies":{"eslint":"3.19.0","expect.js":"0.3.1","husky":"0.13.3","lint-staged":"3.4.1","mocha":"3.4.1"},"gitHead":"9b88d1568a52ec9bb67ecc8d2aa224fa38fd41f4","bugs":{"url":"https://github.com/zeit/ms/issues"},"homepage":"https://github.com/zeit/ms#readme","_id":"ms@2.0.0","_shasum":"5608aeadfc00be6c2901df5f9861788de0d597c8","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"leo","email":"leo@zeit.co"},"dist":{"shasum":"5608aeadfc00be6c2901df5f9861788de0d597c8","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/ms/-/ms-2.0.0.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-2.0.0.tgz_1494937565215_0.34005374647676945"},"directories":{}}},"name":"ms","time":{"modified":"2017-07-27T18:13:15.769Z","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","0.7.3":"2017-03-08T21:59:28.048Z","1.0.0":"2017-03-19T21:43:15.128Z","2.0.0":"2017-05-16T12:26:06.610Z"},"readmeFilename":"readme.md","homepage":"https://github.com/zeit/ms#readme"}