{"_id":"humanize-ms","_rev":"3759174","name":"humanize-ms","description":"transform humanize time to ms","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2025-03-27T07:14:02.000Z","created":"2014-08-14T07:53:31.200Z","2.0.0":"2024-12-12T09:34:43.775Z","1.2.1":"2017-05-19T04:31:29.217Z","1.2.0":"2016-05-20T16:25:14.184Z","1.0.2":"2016-04-04T12:55:12.658Z","1.0.1":"2015-01-02T04:59:52.159Z","1.0.0":"2014-08-14T07:53:31.200Z"},"users":{"ninozhang":true,"shangsinian":true,"stone-jin":true,"daizch":true},"author":{"name":"dead-horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+https://github.com/node-modules/humanize-ms.git"},"versions":{"2.0.0":{"name":"humanize-ms","version":"2.0.0","description":"transform humanize time to ms","keywords":["humanize","ms"],"author":{"name":"dead-horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+https://github.com/node-modules/humanize-ms.git"},"license":"MIT","engines":{"node":">= 14.0.0"},"dependencies":{"ms":"^2.1.3"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@eggjs/tsconfig":"1","@types/mocha":"10","@types/ms":"^0.7.34","@types/node":"22","beautify-benchmark":"^0.2.4","benchmark":"^2.1.4","egg-bin":"6","eslint":"8","eslint-config-egg":"14","tshy":"3","tshy-after":"1","typescript":"5"},"scripts":{"lint":"eslint --cache src test --ext .ts","test":"npm run lint -- --fix && egg-bin test","test-local":"egg-bin test","ci":"npm run lint && egg-bin cov && npm run prepublishOnly && attw --pack","prepublishOnly":"tshy && tshy-after"},"type":"module","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"types":"./dist/commonjs/index.d.ts","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","_id":"humanize-ms@2.0.0","gitHead":"941baa982504b8f006a48316d002a3db33ac6b82","bugs":{"url":"https://github.com/node-modules/humanize-ms/issues"},"homepage":"https://github.com/node-modules/humanize-ms#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"shasum":"e676732a6a92e1ca8478e60840a89996f9c2936b","size":3115,"noattachment":false,"key":"/humanize-ms/-/humanize-ms-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/humanize-ms/download/humanize-ms-2.0.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/humanize-ms_2.0.0_1733996083591_0.5516111736541387"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-12T09:34:43.775Z","publish_time":1733996083775,"_source_registry_name":"default","_cnpm_publish_time":1733996083775},"1.2.1":{"name":"humanize-ms","version":"1.2.1","description":"transform humanize time to ms","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"keywords":["humanize","ms"],"author":{"name":"dead-horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+https://github.com/node-modules/humanize-ms.git"},"license":"MIT","dependencies":{"ms":"^2.0.0"},"devDependencies":{"autod":"*","beautify-benchmark":"~0.2.4","benchmark":"~1.0.0","istanbul":"*","mocha":"*","should":"*"},"gitHead":"d9cdffe02c748b3e05490496ce18530b966154f0","bugs":{"url":"https://github.com/node-modules/humanize-ms/issues"},"homepage":"https://github.com/node-modules/humanize-ms#readme","_id":"humanize-ms@1.2.1","_shasum":"c46e3159a293f6b896da29316d8b6fe8bb79bbed","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.10.2","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"c46e3159a293f6b896da29316d8b6fe8bb79bbed","size":1907,"noattachment":false,"key":"/humanize-ms/-/humanize-ms-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/humanize-ms/download/humanize-ms-1.2.1.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/humanize-ms-1.2.1.tgz_1495168288967_0.14913744758814573"},"directories":{},"publish_time":1495168289217,"_hasShrinkwrap":false,"_cnpm_publish_time":1495168289217},"1.2.0":{"name":"humanize-ms","version":"1.2.0","description":"transform humanize time to ms","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"keywords":["humanize","ms"],"author":{"name":"dead-horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+https://github.com/node-modules/humanize-ms.git"},"license":"MIT","dependencies":{"ms":"~0.7.0"},"devDependencies":{"autod":"*","beautify-benchmark":"~0.2.4","benchmark":"~1.0.0","istanbul":"*","mocha":"*","should":"*"},"gitHead":"27fed123313480784eab117cf23192479dfebb73","bugs":{"url":"https://github.com/node-modules/humanize-ms/issues"},"homepage":"https://github.com/node-modules/humanize-ms#readme","_id":"humanize-ms@1.2.0","_shasum":"4d691a1fa1b87989789af8e58cddfd550622e4d4","_from":".","_npmVersion":"3.8.3","_nodeVersion":"4.4.2","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"4d691a1fa1b87989789af8e58cddfd550622e4d4","size":1227,"noattachment":false,"key":"/humanize-ms/-/humanize-ms-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/humanize-ms/download/humanize-ms-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/humanize-ms-1.2.0.tgz_1463761513425_0.7950706258416176"},"directories":{},"publish_time":1463761514184,"_cnpm_publish_time":1463761514184,"_hasShrinkwrap":false},"1.0.2":{"name":"humanize-ms","version":"1.0.2","description":"transform humanize time to ms","main":"index.js","files":["index.js"],"scripts":{"test":"make test"},"keywords":["humanize","ms"],"author":{"name":"dead-horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"git+https://github.com/node-modules/humanize-ms.git"},"license":"MIT","dependencies":{"ms":"~0.7.0"},"devDependencies":{"autod":"*","beautify-benchmark":"~0.2.4","benchmark":"~1.0.0","istanbul":"*","mocha":"*","should":"*"},"gitHead":"e8bc10a223adeffe114966abc69b75e1f999ab65","bugs":{"url":"https://github.com/node-modules/humanize-ms/issues"},"homepage":"https://github.com/node-modules/humanize-ms#readme","_id":"humanize-ms@1.0.2","_shasum":"9868fb2f7beecd16b9f0baffc53c45213bd3fcbd","_from":".","_npmVersion":"3.8.3","_nodeVersion":"4.2.4","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"9868fb2f7beecd16b9f0baffc53c45213bd3fcbd","size":1167,"noattachment":false,"key":"/humanize-ms/-/humanize-ms-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/humanize-ms/download/humanize-ms-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/humanize-ms-1.0.2.tgz_1459774512139_0.8484525410458446"},"directories":{},"publish_time":1459774512658,"_cnpm_publish_time":1459774512658,"_hasShrinkwrap":false},"1.0.1":{"name":"humanize-ms","version":"1.0.1","description":"transform humanize time to ms","main":"index.js","scripts":{"test":"make test"},"keywords":["humanize","ms"],"author":{"name":"dead-horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"https://github.com/node-modules/humanize-ms"},"license":"MIT","dependencies":{"ms":"~0.6.2"},"devDependencies":{"autod":"~0.3.2","istanbul":"~0.3.0","mocha":"~1.21.4","should":"~4.0.4"},"gitHead":"be36edb7d79c6fb4e16bafc9ee3d5e4ee83607c6","bugs":{"url":"https://github.com/node-modules/humanize-ms/issues"},"homepage":"https://github.com/node-modules/humanize-ms","_id":"humanize-ms@1.0.1","_shasum":"4336d3c4392236bb8e59cda599f6d88675dc5ff8","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.11.14","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"4336d3c4392236bb8e59cda599f6d88675dc5ff8","size":15045,"noattachment":false,"key":"/humanize-ms/-/humanize-ms-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/humanize-ms/download/humanize-ms-1.0.1.tgz"},"directories":{},"publish_time":1420174792159,"_cnpm_publish_time":1420174792159,"_hasShrinkwrap":false},"1.0.0":{"name":"humanize-ms","version":"1.0.0","description":"transform humanize time to ms","main":"index.js","scripts":{"test":"make test"},"keywords":["humanize","ms"],"author":{"name":"dead-horse","email":"dead_horse@qq.com","url":"http://deadhorse.me"},"repository":{"type":"git","url":"https://github.com/node-modules/humanize-ms"},"license":"MIT","dependencies":{"ms":"~0.6.2"},"devDependencies":{"autod":"~0.3.2","istanbul":"~0.3.0","mocha":"~1.21.4","should":"~4.0.4"},"gitHead":"31fe3d5874f969d79db7ca9d69fff28ba7430d3b","bugs":{"url":"https://github.com/node-modules/humanize-ms/issues"},"homepage":"https://github.com/node-modules/humanize-ms","_id":"humanize-ms@1.0.0","_shasum":"9d65bcd8df5a142d88392e717412179d051f94eb","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"9d65bcd8df5a142d88392e717412179d051f94eb","size":14885,"noattachment":false,"key":"/humanize-ms/-/humanize-ms-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/humanize-ms/download/humanize-ms-1.0.0.tgz"},"directories":{},"publish_time":1408002811200,"_cnpm_publish_time":1408002811200,"_hasShrinkwrap":false}},"readme":"# humanize-ms\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/node-modules/humanize-ms/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/humanize-ms/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/humanize-ms.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/humanize-ms\n[codecov-image]: https://codecov.io/gh/node-modules/humanize-ms/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/node-modules/humanize-ms\n[snyk-image]: https://snyk.io/test/npm/humanize-ms/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/humanize-ms\n[download-image]: https://img.shields.io/npm/dm/humanize-ms.svg?style=flat-square\n[download-url]: https://npmjs.org/package/humanize-ms\n\ntransform humanize time to ms\n\n## Installation\n\n```bash\nnpm install humanize-ms\n```\n\n## Examples\n\n```typescript\nimport { ms } from 'humanize-ms';\n\nms('1s') // 1000\nms(1000) // 1000\n```\n\n### License\n\n[MIT](LICENSE)\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=node-modules/humanize-ms)](https://github.com/node-modules/humanize-ms/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","_attachments":{},"homepage":"https://github.com/node-modules/humanize-ms#readme","bugs":{"url":"https://github.com/node-modules/humanize-ms/issues"},"license":"MIT"}