{"_id":"@elonehoo/monorepo","name":"@elonehoo/monorepo","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.3":{"name":"@elonehoo/monorepo","version":"0.0.3","description":"understandable milliseconds","license":"MIT","author":{"name":"Elone Hoo","email":"huchengyea@163.com"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"},"./*":"./*"},"devDependencies":{"@elonehoo/eslint-config":"2.0.0","@types/node":"18.15.11","@vitest/coverage-c8":"^0.30.1","bumpp":"9.1.0","eslint":"8.38.0","pnpm":"8.2.0","rimraf":"5.0.0","typescript":"5.0.4","unbuild":"1.2.1","vite":"4.2.1","vitest":"^0.30.1"},"scripts":{"build":"rimraf dist && unbuild","release":"bumpp package.json --commit --push --tag && pnpm -r publish --access public","typecheck":"tsc --noEmit","test":"vitest","coverage":"vitest run --coverage","lint":"eslint .","lint:fix":"eslint . --fix"},"_id":"@elonehoo/monorepo@0.0.3","_integrity":"sha512-47b7034358sxuMUvaJCloQoDdoEZfQveopEt3pqEPBMcYcAdVg4Hnx8RXEwN8jQ24MnINitb+0LLZ+j2TZLBhg==","_resolved":"/private/var/folders/4v/f62gvyy54173mzzc2nc54h100000gn/T/a6fad1308230ad51ef3c0f101052e5f3/elonehoo-monorepo-0.0.3.tgz","_from":"file:elonehoo-monorepo-0.0.3.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-47b7034358sxuMUvaJCloQoDdoEZfQveopEt3pqEPBMcYcAdVg4Hnx8RXEwN8jQ24MnINitb+0LLZ+j2TZLBhg==","shasum":"3585957a58cfcb6ee85bd4dc1d69317d0adc2de6","tarball":"https://registry.npmjs.org/@elonehoo/monorepo/-/monorepo-0.0.3.tgz","fileCount":6,"unpackedSize":14789,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKsFzx7bR57gTvOqzLcfiyKzmkBx99i9JmbrfxPu1ivwIhAP4L+JOZEJSPi7IwY7enmeBwvDY/Eu6CXY3vvkYreL17"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkO2Q9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHNg//YnTKnL1v+RwS9Sokp6k96cgjTHs88a7bg0p49DROrIMx94SL\r\ntJThzuXieNb5K+rsTTOgC0dhMfNbdLOiwYc6uJ3Gxh4dXXTVs+37bVtA2W4v\r\nlUuZK/ubkoNmkkS5xP9wG7pHYxtJONYKhVCds7TEsobI7voFV3lj0anbEdOK\r\naZjslmaia7neYLavLQ3neTafjJQjhmpQXBhEOv6lzMfM8AZ7jPjPNaz1sn3g\r\nnJ1JuzFqW3MFNLXLRJi32BumzmIl2nsmHfZROsZi8Oj270Hiz4o5DQFDN/d4\r\nCbU6leDP5dNW0M5A4Z4QGX/xQXXnshnEot9YO4zmi7y+8sVvly2le1stxNz5\r\nww3FtPt0HHk221RdOVuGBg2GTh3yDs8LR9W7PNYAuddSKAyXngO17vuK883H\r\nxPw8Pij8PweuRzp4ltJto9n7zOYtpwUm0Ykjh9syl6ll0CY8kucaKKxGMYjT\r\n49iHwHBO7IsjAPhItT/kOAH8cFgMoO+UKVtnZmBeHus19JDuuzWbB5/o+sZx\r\nV8pZEB+rXJ+k36G7t+oAssNQMsW5Fv34uUgXxkgQipk6GTq94SHMVBnqrNH4\r\nrp3oWARh/TQywUNmAeHnzFwTZKSRWsPkJFx11eP3/ZUh5i1qAVh/ILy4aelz\r\nkn91rUflaN9JhePNqlDvabel1SR7b+2zNMY=\r\n=eg4E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"elonehoo","email":"elonehoo@gmail.com"},"directories":{},"maintainers":[{"name":"elonehoo","email":"elonehoo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/monorepo_0.0.3_1681613885244_0.33054643954317986"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-16T02:58:05.183Z","0.0.3":"2023-04-16T02:58:05.399Z","modified":"2023-04-16T02:58:05.621Z"},"maintainers":[{"name":"elonehoo","email":"elonehoo@gmail.com"}],"description":"understandable milliseconds","author":{"name":"Elone Hoo","email":"huchengyea@163.com"},"license":"MIT","readme":"<div align=\"center\">\n  <img src=\"./public/logo.svg\" width=\"100px\" height=\"100px\" />\n</div>\n\n<h1 align=\"center\">concise-ms</h1>\n\n<p align=\"center\">\n  <em>Convert milliseconds to string: `1337000000` ➡️ `15d 11h 23m 20s`</em>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@elonehoo/concise-ms\">\n    <img src=\"https://img.shields.io/npm/v/@elonehoo/concise-ms?color=81A2BE&label=\" />\n  </a>\n</p>\n\n## install\n\n```bash\n# npm\nnpm install @elonehoo/concise-ms\n#yarn\nyarn add @elonehoo/concise-ms\n#pnpm\npnpm install @elonehoo/concise-ms\n```\n\n## usage\n\n```typescript\nimport { conciseMilliseconds } from '@elonehoo/concise-ms'\n\nconciseMilliseconds(1337000000) //=> '15d 11h 23m 20s'\n\nconciseMilliseconds(1337)//=> '1.3s'\n\nconciseMilliseconds(133)//=> '133ms'\n\n// `compact` option\nconciseMilliseconds(1337, {compact: true})//=> '1s'\n\n// `verbose` option\nconciseMilliseconds(1335669000, {verbose: true})//=> '15 days 11 hours 1 minute 9 seconds'\n\n// `colonNotation` option\nconciseMilliseconds(95500, {colonNotation: true})//=> '1:35.5'\n\n// `formatSubMilliseconds` option\nconciseMilliseconds(100.400080, {formatSubMilliseconds: true})//=> '100ms 400µs 80ns'\n\n// Can be useful for time durations\nconciseMilliseconds(new Date(2014, 0, 1, 10, 40) - new Date(2014, 0, 1, 10, 5))//=> '35m'\n```\n","readmeFilename":"README.md"}