{"_id":"parse-ms","_rev":"3282833","name":"parse-ms","description":"Parse milliseconds into an object","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2024-05-16T05:35:35.000Z","created":"2014-03-20T21:15:53.450Z","4.0.0":"2024-01-07T14:14:09.614Z","3.0.0":"2021-04-09T11:57:35.664Z","2.1.0":"2019-04-24T03:02:45.929Z","2.0.0":"2018-07-03T17:26:48.553Z","1.0.1":"2016-02-16T08:30:15.206Z","1.0.0":"2014-08-13T10:08:25.643Z","0.1.2":"2014-04-30T22:41:48.338Z","0.1.1":"2014-04-16T20:45:47.703Z","0.1.0":"2014-03-20T21:15:53.450Z"},"users":{"monolithed":true,"lgatica":true,"rocket0191":true,"d3ck":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-ms.git"},"versions":{"4.0.0":{"name":"parse-ms","version":"4.0.0","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-ms.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["browser","parse","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"devDependencies":{"ava":"^6.0.1","tsd":"^0.30.3","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"265f81cac937a9720a04bb754b6e739d8c6a5130","bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms#readme","_id":"parse-ms@4.0.0","_nodeVersion":"18.19.0","_npmVersion":"9.2.0","dist":{"shasum":"c0c058edd47c2a590151a718990533fd62803df4","size":1985,"noattachment":false,"key":"/parse-ms/-/parse-ms-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-ms_4.0.0_1704636849415_0.12881764044246058"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-07T14:14:09.614Z","publish_time":1704636849614,"_source_registry_name":"default","_cnpm_publish_time":1704636849614},"3.0.0":{"name":"parse-ms","version":"3.0.0","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-ms.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["browser","parse","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"49dab09236deeea5d2c082182e2c73e7a79763a8","bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms#readme","_id":"parse-ms@3.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3ea24a934913345fcc3656deda72df921da3a70e","size":1766,"noattachment":false,"key":"/parse-ms/-/parse-ms-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-ms_3.0.0_1617969455561_0.5951076339195813"},"_hasShrinkwrap":false,"publish_time":1617969455664,"_cnpm_publish_time":1617969455664},"2.1.0":{"name":"parse-ms","version":"2.1.0","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-ms.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["browser","parse","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range","interval"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"8b24b37312fcdbc45d3db2cc772bfefac33e5104","bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms#readme","_id":"parse-ms@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"348565a753d4391fa524029956b172cb7753097d","size":1820,"noattachment":false,"key":"/parse-ms/-/parse-ms-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-ms_2.1.0_1556074965709_0.30666089884291026"},"_hasShrinkwrap":false,"publish_time":1556074965929,"_cnpm_publish_time":1556074965929},"2.0.0":{"name":"parse-ms","version":"2.0.0","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-ms.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["browser","parse","time","ms","milliseconds","microseconds","nanoseconds","duration","period","range"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"cc84ff244494dcb0608db017e9b8561126cbe0b6","bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms#readme","_id":"parse-ms@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7b3640295100caf3fa0100ccceb56635b62f9d62","size":1590,"noattachment":false,"key":"/parse-ms/-/parse-ms-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-ms_2.0.0_1530638808489_0.7455900468762988"},"_hasShrinkwrap":false,"publish_time":1530638808553,"_cnpm_publish_time":1530638808553},"1.0.1":{"name":"parse-ms","version":"1.0.1","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-ms.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["browser","parse","time","ms","milliseconds","duration","period","range"],"devDependencies":{"mocha":"*"},"gitHead":"4bf8c19fa84efca958f3823f794f0d55c49e5827","bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms#readme","_id":"parse-ms@1.0.1","_shasum":"56346d4749d78f23430ca0c713850aef91aa361d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"56346d4749d78f23430ca0c713850aef91aa361d","size":1534,"noattachment":false,"key":"/parse-ms/-/parse-ms-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/parse-ms-1.0.1.tgz_1455611413197_0.5819392285775393"},"directories":{},"publish_time":1455611415206,"_cnpm_publish_time":1455611415206,"_hasShrinkwrap":false},"1.0.0":{"name":"parse-ms","version":"1.0.0","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/parse-ms"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["browser","parse","time","ms","milliseconds","duration","period","range"],"devDependencies":{"mocha":"*"},"gitHead":"192d26c06c25eb8f628da47c80110d46d66835c4","bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms","_id":"parse-ms@1.0.0","_shasum":"ea045d71976984b60e8f4ecb58d0048d3416ba3c","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"ea045d71976984b60e8f4ecb58d0048d3416ba3c","size":816,"noattachment":false,"key":"/parse-ms/-/parse-ms-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-1.0.0.tgz"},"directories":{},"publish_time":1407924505643,"_cnpm_publish_time":1407924505643,"_hasShrinkwrap":false},"0.1.2":{"name":"parse-ms","version":"0.1.2","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/parse-ms"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["browser","parse","time","ms","milliseconds","duration","period","range"],"devDependencies":{"mocha":"*","browserify":"^3.0.0"},"bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms","_id":"parse-ms@0.1.2","dist":{"shasum":"dd3fa25ed6c2efc7bdde12ad9b46c163aa29224e","size":900,"noattachment":false,"key":"/parse-ms/-/parse-ms-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1398897708338,"_cnpm_publish_time":1398897708338,"_hasShrinkwrap":false},"0.1.1":{"name":"parse-ms","version":"0.1.1","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/parse-ms"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["browser","parse","time","ms","milliseconds","duration","period","range"],"devDependencies":{"mocha":"*","browserify":"^3.0.0"},"bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms","_id":"parse-ms@0.1.1","dist":{"shasum":"3e20d2f7524092324b917ef1186eace72feca32e","size":903,"noattachment":false,"key":"/parse-ms/-/parse-ms-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1397681147703,"_cnpm_publish_time":1397681147703,"_hasShrinkwrap":false},"0.1.0":{"name":"parse-ms","version":"0.1.0","description":"Parse milliseconds into an object","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/parse-ms"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"a=$npm_package_name; browserify -r ./index:$a -s $a index.js -o browser.js"},"files":["index.js"],"keywords":["browser","parse","time","ms","milliseconds","duration","period","range"],"devDependencies":{"mocha":"*","browserify":"^3.0.0"},"bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"homepage":"https://github.com/sindresorhus/parse-ms","_id":"parse-ms@0.1.0","dist":{"shasum":"2d24c4fc03facd7face821a04bd052a1be0d7ac9","size":1014,"noattachment":false,"key":"/parse-ms/-/parse-ms-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-ms/download/parse-ms-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1395350153450,"_cnpm_publish_time":1395350153450,"_hasShrinkwrap":false}},"readme":"# parse-ms\n\n> Parse milliseconds into an object\n\n## Install\n\n```sh\nnpm install parse-ms\n```\n\n## Usage\n\n```js\nimport parseMilliseconds from 'parse-ms';\n\nparseMilliseconds(1337000001);\n/*\n{\n\tdays: 15,\n\thours: 11,\n\tminutes: 23,\n\tseconds: 20,\n\tmilliseconds: 1,\n\tmicroseconds: 0,\n\tnanoseconds: 0\n}\n*/\n\nparseMilliseconds(1337000001n);\n/*\n{\n\tdays: 15n,\n\thours: 11n,\n\tminutes: 23n,\n\tseconds: 20n,\n\tmilliseconds: 1n,\n\tmicroseconds: 0n,\n\tnanoseconds: 0n\n}\n*/\n```\n\n## Related\n\n- [to-milliseconds](https://github.com/sindresorhus/to-milliseconds) - The inverse of this module\n- [pretty-ms](https://github.com/sindresorhus/pretty-ms) - Convert milliseconds to a human readable string\n","_attachments":{},"homepage":"https://github.com/sindresorhus/parse-ms#readme","bugs":{"url":"https://github.com/sindresorhus/parse-ms/issues"},"license":"MIT"}