{"_id":"ms-typescript","_rev":"6-49684cf12092920e51ca075eff0f3e18","time":{"1.0.0":"2021-06-28T20:08:54.770Z","1.0.1":"2021-06-28T20:08:54.770Z","created":"2021-06-29T21:07:47.303Z","1.1.0":"2021-06-29T21:07:47.438Z","modified":"2022-05-09T22:51:46.330Z","1.1.1":"2021-06-29T21:28:21.844Z","2.0.0":"2021-06-30T18:33:30.680Z"},"name":"ms-typescript","dist-tags":{"latest":"2.0.0"},"versions":{"1.1.0":{"name":"ms-typescript","version":"1.1.0","description":"Tiny millisecond conversion utility. Original package was developed by Vercel. This is reworked TypeScript version","keywords":["time","date","ms","milliseconds"],"types":"dist/index.d.ts","main":"dist/index.js","scripts":{"build":"tsc","lint":"eslint ./src/**/* --quiet --fix","format":"prettier --write .","test":"jest --config jestconfig.json","prepublish":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/jest":"^26.0.23","@typescript-eslint/eslint-plugin":"^4.28.0","@typescript-eslint/parser":"^4.24.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"^27.0.5","prettier":"^2.3.0","ts-jest":"^27.0.3","typescript":"^4.2.4"},"repository":{"type":"git","url":"git+https://github.com/grettir9/ms-typescript.git"},"author":{"name":"Ivan Z"},"license":"MIT","gitHead":"4fb7f73b20478cb57fe4e9ef79f6adb759e93194","bugs":{"url":"https://github.com/grettir9/ms-typescript/issues"},"homepage":"https://github.com/grettir9/ms-typescript#readme","_id":"ms-typescript@1.1.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-y2VM+aaHSEDW7/yTVJiBJokMgs6Q/YJs6Kke6BWq5FMOz5SLIhF2QuzFNJi5IQUMXXHM/a0eaRr8O12mxi/+fQ==","shasum":"77899adef684ba675e8183225c54f8ba7ece65a6","tarball":"https://registry.npmjs.org/ms-typescript/-/ms-typescript-1.1.0.tgz","fileCount":16,"unpackedSize":8086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg24ujCRA9TVsSAnZWagAAVRUP/RE0Wj+81sXRziz1eL+w\n7PKNXgDk5AgjcrG6SKcFWUlgcnH5TF4A4PtazwdMlnqKLGd1cmQ5BW+GLQ4w\nvJgX6phDi+/sMbFvVC7Cr3TkF2mIse7RKkFzxEStp4lJ+DKP47vsz/+7v/sv\nONMuLTcL4mS3imZjA26lZFoHLDNAF9fe1DojuGaaYz7yIEsHx730npNzGgaD\njS36xFKIrsGpq+ueOLg1WfPapRBpukxJ19F/QsCAb2ZcDTTlWUoiefjzJ8+4\nEX59j5EOHtOKL4DdXGmYBiC2XQd8xtT8xFpJl2IBInLGFfl0fE38eEGodtdf\nfSD45UoakgE1nlLzf4ecWOkPcYK4Zdow2JUakwiiMQTTUd7rwmCxbv5QjTwV\n1ySyeGep6QoMEqtPk4c7uAdFqhYAdhygaQA2ObUR0I361oi/v8anremaXjQ1\nNeaoW6b2D5E3TE7SxbV+Ajucf1HOgjFkKzJwOd6JzFGVWgVqSiDfVFeqpWxN\n5RW1sr5E7XNn3qMG7xAGLoja3vspNLwUP1F4cZx53mJ7hHuidB3ZRN+Z5pD6\nbj/g9YboB7xEdHZsrc+rl2t18vxBHKPSCKBYXtYi0oeKjNU0IcXtKBk92iyX\nMhUENetVeayuCO7lTeMiDFvol5ClkCiO09JwvZbdwnf9BWConzwHOOCujlak\n7H4l\r\n=LTW8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFa0962KD7hJdT86V7dPvG5mCrJZdenDD53fC1AoWWmAiEAiXAqR4mC5loPW5e5Q7j5RH0EWyoQYbtdHnnIhK+wRnM="}]},"_npmUser":{"name":"grettir9","email":"corvuss90@gmail.com"},"directories":{},"maintainers":[{"name":"grettir9","email":"corvuss90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ms-typescript_1.1.0_1625000867304_0.5011101361033792"},"_hasShrinkwrap":false},"1.1.1":{"name":"ms-typescript","version":"1.1.1","description":"Tiny millisecond conversion utility. Original package was developed by Vercel. This is reworked TypeScript version","keywords":["time","date","ms","milliseconds"],"types":"dist/index.d.ts","main":"dist/index.js","scripts":{"build":"tsc","lint":"eslint ./src/**/* --quiet --fix","format":"prettier --write .","test":"jest --config jestconfig.json","prepublish":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/jest":"^26.0.23","@typescript-eslint/eslint-plugin":"^4.28.0","@typescript-eslint/parser":"^4.24.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"^27.0.5","prettier":"^2.3.0","ts-jest":"^27.0.3","typescript":"^4.2.4"},"repository":{"type":"git","url":"git+https://github.com/grettir9/ms-typescript.git"},"author":{"name":"Ivan Z"},"license":"MIT","gitHead":"4e436d7b71708bee180d4a1ec731b20a98da6e33","bugs":{"url":"https://github.com/grettir9/ms-typescript/issues"},"homepage":"https://github.com/grettir9/ms-typescript#readme","_id":"ms-typescript@1.1.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-SeodCVzNtOMFUs6G4hnV151/iFuPQbIE/RWDN/3EyZx+HTEaSB9HgHxxFVd1/+1Z9+fEW903a7jjeW/gEa9x6Q==","shasum":"12c56895491f4c2ce62ac385987c0f325ed1ee5e","tarball":"https://registry.npmjs.org/ms-typescript/-/ms-typescript-1.1.1.tgz","fileCount":16,"unpackedSize":8058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg25B2CRA9TVsSAnZWagAA73gP/RyjEwYFOWM/o3D//HkK\nO2rh4ZzTj4TLCOeD9pV48ULj3mCQZ3Lqu7sMAldyDFIo0QOvUXuzqXVxYdLy\nQ8lJ9v9LWvJn9CZ0OPKsio1wkibpD+h4z4UoLt2ewTLpF0bczEmffjP/tN1Y\nphY4LOnIWpWc2cpwmx9FTEN5EaCm7Ldeq3qEh5G+Y2blOzt66+64PTNitLBb\n6YHOFTWcIbkjTWtkGWWqwZMlMmonKcPXXIUmybauJb2V+GCqEM/EgkvVDBOC\n+6oA48X4kU0WpGd8MELuDLieAkhwmYALYlvuEaMakVUJtDouvNUQhjfvMSAD\nE8MHuY7yhUtePUNcrBRlgAPmSpviDRleplHgkEU7kjfILJuLDdH3RABPhaI8\nWOIQG50MOVkzc23UTndjtY01nBwM8SC6X2QsqhOrdUtUytFCdQRlPPiOOD6w\nPaHTHKYzE4oSqUouc+75iOCwICUlDwSMA94t/b1WPQIkZJ4Cc6gp9FXBmZ//\nDaqeo8U/AJ1enxTRjbHaxw3PF7iVYt4iTLrdYmPzc6gLVLF15wcyoEBKSu96\nldeJ6s+qRNQR+qLcNPYrofA6P/P+W25Piqkk0rj/18aMFgvtB/kZ//nCBorr\noHdr2m9pyj5nMYlAr4juKcCO3BsIwwspXBNUqwm9tcNwkZEqdzrin7fRdxDD\nP5op\r\n=BAUR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPYinDTSOU7WJ8/WfROxwW0KsivxuE/2ee1eQ/UmyrAwIgDwscSWeVP4c12Q3v/gRqphjHoMqbPIqCvm7MEx5fKoA="}]},"_npmUser":{"name":"grettir9","email":"corvuss90@gmail.com"},"directories":{},"maintainers":[{"name":"grettir9","email":"corvuss90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ms-typescript_1.1.1_1625002101719_0.26560860490634286"},"_hasShrinkwrap":false},"2.0.0":{"name":"ms-typescript","version":"2.0.0","description":"Tiny millisecond conversion utility. Original package was developed by Vercel. This is reworked TypeScript version","keywords":["time","date","ms","milliseconds"],"types":"dist/index.d.ts","main":"dist/index.js","scripts":{"build":"tsc","lint":"eslint ./src/**/* --quiet --fix","format":"prettier --write .","test":"jest --runInBand --config jestconfig.json","prepublish":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/jest":"^26.0.23","@typescript-eslint/eslint-plugin":"^4.28.0","@typescript-eslint/parser":"^4.24.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"^27.0.5","prettier":"^2.3.0","ts-jest":"^27.0.3","typescript":"^4.2.4"},"repository":{"type":"git","url":"git+https://github.com/grettir9/ms-typescript.git"},"author":{"name":"Ivan Z"},"license":"MIT","gitHead":"a2a46483f70356554ca31f3c62115deb5035466d","bugs":{"url":"https://github.com/grettir9/ms-typescript/issues"},"homepage":"https://github.com/grettir9/ms-typescript#readme","_id":"ms-typescript@2.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-47wAq6QgJZeFYqQ9k5PbBoyGhZsxOzwmTee2fna5+7coYuidaUFdACrKDbtOuLChFQOsSTS5dEyuplC52E5S8g==","shasum":"e8ae0b1c2ec5c856652efd8aa4715a6d7cda696c","tarball":"https://registry.npmjs.org/ms-typescript/-/ms-typescript-2.0.0.tgz","fileCount":17,"unpackedSize":9542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3Lj7CRA9TVsSAnZWagAA+cEQAKKbNCHY462YMG1qnUUs\nNn7qJabg899srFJnACShAhb/8CYm+dPSYcmcS+zQXMDOsdXMBrxL0oePraYi\nMTnVCT76eAAz660jGgOCDYDytVbC4C/g3PmVV2I48H6mNBdj4I+KL4dre6JA\nD8Lvu8puOJcI1zzSbymItZcCBzDH16IegEhyQCnM1RbUvkwgGlWR2P0nEA1V\nLoDLafG0V0Wm1XWnd6mzSWkPYQ4AzEbZzoVI+owRgDUxLbxjKrCnro0ofAX2\nu7ZYiG0WhXvmxpx+xRE0iA10yS7Pxy5+larpf7ZDrpEgY1/vE7PINgrAMLlX\nfrl0vtSHGJb3xTpZ6VtfaGQgw/HhrQVQekGJiDfpYmy2anaVKFJaunuKBDOM\n6QzP8b/wb2T93oGV49t/KbDqfothYi19VHzz9rOlwheDInVeAxjBXMEoFWVn\n9eBCLYjTF+jfp8PqTTOElVRgG+OIzg5BlsRIQwNGsWOo0H9geivljjmacfpp\noDfwOfB8QlojM8OjchO6Zp2UMjV1LAcgDY6BrRoNe30ytoZU6aNvgFGAPXIJ\nxJJWFCiJj2dcymUWKRtLuYwj9CfwHDv7wivvfrDD21dom6jpqTi3vqx3yRaW\nvr6ob1Xv4Wd2R5TRS9rzLJwR/o62xnHIBzoGP2uL1j2igygG8byD4Rz3OYKO\nLPY8\r\n=Wkk2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLF/fKE31LjLh/Zs98zh73HbCpA9mSk9S/H8c9B+n9tAIhAM+tazmObpXmrcllozdLtT7mnkNhSGBqJ19jGvjz+i2c"}]},"_npmUser":{"name":"grettir9","email":"corvuss90@gmail.com"},"directories":{},"maintainers":[{"name":"grettir9","email":"corvuss90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ms-typescript_2.0.0_1625078010526_0.38931815799810643"},"_hasShrinkwrap":false}},"maintainers":[{"name":"grettir9","email":"corvuss90@gmail.com"}],"description":"Tiny millisecond conversion utility. Original package was developed by Vercel. This is reworked TypeScript version","homepage":"https://github.com/grettir9/ms-typescript#readme","keywords":["time","date","ms","milliseconds"],"repository":{"type":"git","url":"git+https://github.com/grettir9/ms-typescript.git"},"author":{"name":"Ivan Z"},"bugs":{"url":"https://github.com/grettir9/ms-typescript/issues"},"license":"MIT","readme":"# ms\n\nUse this package to easily convert various time formats to milliseconds.\n\n## Examples\n\n```js\ntoMs('2 days')  // 172800000\ntoMs('1d')      // 86400000\ntoMs('10h')     // 36000000\ntoMs('2.5 hrs') // 9000000\ntoMs('2h')      // 7200000\ntoMs('1m')      // 60000\ntoMs('5s')      // 5000\ntoMs('1y')      // 31557600000\ntoMs('100')     // 100\ntoMs('-3 days') // -259200000\ntoMs('-1h')     // -3600000\ntoMs('-200')    // -200\n```\n\n### Convert from Milliseconds\n\n```js\nfromMs(60000)             // \"1m\"\nfromMs(2 * 60000)         // \"2m\"\nfromMs(-3 * 60000)        // \"-3m\"\nfromMs(toMs('10 hours'))    // \"10h\"\n```\n\n### Time Format Written-Out\n\n```js\nfromMs(60000, { long: true })             // \"1 minute\"\nfromMs(2 * 60000, { long: true })         // \"2 minutes\"\nfromMs(-3 * 60000, { long: true })        // \"-3 minutes\"\nfromMs(toMs('10 hours'), { long: true })    // \"10 hours\"\n```\n\n## Features\n\n- Works both in [Node.js](https://nodejs.org) and in the browser\n- Provides functions to convert from milliseconds and to milliseconds\n- If you pass a string with a number and a valid unit, the number of equivalent milliseconds is returned\n- TypeScript\n- ES6 import supported","readmeFilename":"README.md"}