{"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":{"integrity":"sha512-TFN/YZLNqeL9OLdGHBb4Via7hAh766lHMckhEI0XuKUv4zF4qqxULc55x7x3TfgKPJ+ny1+0UeVtPE0HM2gawA==","shasum":"e676732a6a92e1ca8478e60840a89996f9c2936b","tarball":"http://registry-npm.ywwl.com/humanize-ms/download/humanize-ms-2.0.0.tgz","fileCount":11,"unpackedSize":7245,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGj2PlHFAJxilhsazaeqz+jxmaKZpjuIHy2Xr3erm70pAiBh3Bv+MKAurG//EiGmXHwc/hE8mwchxX6QYPXPwSO3Gg=="}],"size":3115,"noattachment":false,"key":"/humanize-ms/-/humanize-ms-2.0.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/humanize-ms_2.0.0_1733996083591_0.5516111736541387"},"_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","publish_time":1733996083775,"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1733996083775,"dist-tags":{"latest":"2.0.0"}}