{"_id":"@benzn/to-ms","_rev":"16-51b26285c3f7bac811154e9527c40fc4","name":"@benzn/to-ms","dist-tags":{"latest":"3.0.9"},"versions":{"1.2.0":{"name":"@benzn/to-ms","version":"1.2.0","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@1.2.0","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"e6271d327b44322890dfbda431be1e4d7332e6b7","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-1.2.0.tgz","fileCount":6,"integrity":"sha512-wbeyuRSVqze/xdmx48MHJxlINxwyBQOjymWxL7LE6nz8PBT9F3LpHTAfwW8Oq+agNV4HRnXBRUBPDv1wV6wPHw==","signatures":[{"sig":"MEYCIQDpAe3yMgAf44CUr1/Oaehtk1KWYKXtTTg2diTKo3VcPgIhAJnBa94Tv80nC/r0vgrtJPMsMCxM/GuobJN8R6jkZpJm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12253},"main":"dist/index.js","type":"module","types":"dist/index.d.js","gitHead":"12d512f25afe5cff7c93f42a232ea9a08a52ab63","scripts":{"test":"mocha","build":"tsup","compile":"tsc","prebuild":"npm run type-check && npm run lint-check","build:skip":"tsup","lint-check":"eslint ./src/**/*","type-check":"tsc --noEmit"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.8.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"20.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","typescript-eslint":"^8.21.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_1.2.0_1738255375720_0.32570073814315514","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@benzn/to-ms","version":"1.2.1","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@1.2.1","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"418871e70fb15e845f7531234c44337f8753b623","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-1.2.1.tgz","fileCount":10,"integrity":"sha512-E+eXhOSy0Mm3vUZERBdlT28cYg18t+Ny6uHZ93TzOFZeu0c+7QCEtXu+gCtQkQo9WEAiM2ve23s/m2HujfVWmw==","signatures":[{"sig":"MEYCIQC6TAGCT2rxZNA2pV0GdClKwi2PntaKw/3JCsFcF9VVnwIhAI4s3gBFDJxiUcfyCsVlCkH1dq9L4nENsg9XkPMDTuiG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15676},"main":"./dist/cjs/index.js","type":"module","_from":"file:benzn-to-ms-1.2.1.tgz","types":"dist/index.d.ts","module":"./dist/esm/index.js","exports":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\a22be4fcf29042ee9cba19c7782f9a94\\benzn-to-ms-1.2.1.tgz","_integrity":"sha512-E+eXhOSy0Mm3vUZERBdlT28cYg18t+Ny6uHZ93TzOFZeu0c+7QCEtXu+gCtQkQo9WEAiM2ve23s/m2HujfVWmw==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.8.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"20.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","tsx":"^4.19.2","jiti":"^2.4.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","ts-node":"^10.9.2","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","typescript-eslint":"^8.22.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_1.2.1_1738433285655_0.35506355454732597","host":"s3://npm-registry-packages-npm-production"}},"1.2.1-fix":{"name":"@benzn/to-ms","version":"1.2.1-fix","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@1.2.1-fix","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"3fcc2a89fd23855c2ab45ca2a63ff0ec4bb6aa8b","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-1.2.1-fix.tgz","fileCount":10,"integrity":"sha512-5Cipidu94VccmqT9ypHhMEyfhViw3Ecsxb7roGvfCltJWqv60cTWV9h6qXoX9c7WOaS9fuUbC4MLrG98mNo8Lw==","signatures":[{"sig":"MEUCIQD4igxFIVSZAMubtXciX/2aI7M71Ndf7W3lxbX7w1HJegIgW9Y831AyH0HZeZTLWw+/oY450/PHalGxsNhkn5uGbIw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15680},"main":"./dist/cjs/index.js","type":"module","_from":"file:benzn-to-ms-1.2.1-fix.tgz","types":"dist/index.d.ts","module":"./dist/esm/index.js","exports":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\5af7da9cfa9a6a0b5f3b1e7ab8e90796\\benzn-to-ms-1.2.1-fix.tgz","_integrity":"sha512-5Cipidu94VccmqT9ypHhMEyfhViw3Ecsxb7roGvfCltJWqv60cTWV9h6qXoX9c7WOaS9fuUbC4MLrG98mNo8Lw==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.8.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"20.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","tsx":"^4.19.2","jiti":"^2.4.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","ts-node":"^10.9.2","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","typescript-eslint":"^8.22.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_1.2.1-fix_1738434285976_0.546140425608048","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@benzn/to-ms","version":"1.2.2","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@1.2.2","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"61bcd69795a78565d8ce53fdd1dc2e3e713ec954","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-1.2.2.tgz","fileCount":8,"integrity":"sha512-0P6W2hd2/BKbxTaoA9B+pTuVQeM623MMkoIWnvsT4RE4K1Omz+RddXTh7SydMAWOtJ+NAG0qn/2qaMfM9iJtnw==","signatures":[{"sig":"MEYCIQCwHWa5Jqwb0KlvUQ5pUHetBG1QhE+R+hhGj1NSBCST/AIhAMLhPNmmdKCLWmzcEqteiU8Ue7VzNye0AGRMcvzStqoG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15586},"main":"./dist/cjs/index.js","type":"module","_from":"file:benzn-to-ms-1.2.2.tgz","types":"dist/index.d.ts","module":"./dist/esm/index.js","exports":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\8688313a433c1dad0da51df59347ade0\\benzn-to-ms-1.2.2.tgz","_integrity":"sha512-0P6W2hd2/BKbxTaoA9B+pTuVQeM623MMkoIWnvsT4RE4K1Omz+RddXTh7SydMAWOtJ+NAG0qn/2qaMfM9iJtnw==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.8.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"20.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","tsx":"^4.19.2","jiti":"^2.4.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","ts-node":"^10.9.2","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","typescript-eslint":"^8.22.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_1.2.2_1738434515495_0.3543505495655279","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@benzn/to-ms","version":"1.2.3","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@1.2.3","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"8096f227d8c7b81435524d303cc1e8df85a3a357","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-1.2.3.tgz","fileCount":9,"integrity":"sha512-LviNnE8XgwuXpToFPnDXc53YSXEMtS2OUK09RU617lhFSb/+13A2GlouEvPIPZG2UTivSoN/07oXamiBORfYxw==","signatures":[{"sig":"MEYCIQDCcXu/5Ugxs/B25Q3E4JkiYHfO3eDWlRI0lnxy0yJqcgIhANfggYswqd7hT21inFwexARoPEftmI/FIN6WTgBrHa4j","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15439},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-1.2.3.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\364c6dd118195bbfd84e46c9564eb6eb\\benzn-to-ms-1.2.3.tgz","_integrity":"sha512-LviNnE8XgwuXpToFPnDXc53YSXEMtS2OUK09RU617lhFSb/+13A2GlouEvPIPZG2UTivSoN/07oXamiBORfYxw==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.8.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"20.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","typescript-eslint":"^8.22.0"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_1.2.3_1738518019230_0.8097832568712613","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@benzn/to-ms","version":"1.2.5","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@1.2.5","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"d1fa168221b373931455001e2ed61c8f2039b18e","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-1.2.5.tgz","fileCount":9,"integrity":"sha512-IsYInkZwjFMJFRg46sklFGP5IrvYBd+RjUBou8tXUUy9MLnvLJ3SaMK2dMwe5guuz2+whc7CAKJF+t8qYq+jyg==","signatures":[{"sig":"MEQCIBzIIT9JPvOFXxAox5lOvQynUsMfu7ZkVJYHCzYvpcJbAiBfOLI8akZjP++kJIftg+Oe1hvTJP4pv1q92jUb79mg4w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15503},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-1.2.5.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\b536cef82a2335a6f1ec92087693e26f\\benzn-to-ms-1.2.5.tgz","_integrity":"sha512-IsYInkZwjFMJFRg46sklFGP5IrvYBd+RjUBou8tXUUy9MLnvLJ3SaMK2dMwe5guuz2+whc7CAKJF+t8qYq+jyg==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","typescript-eslint":"^8.22.0"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_1.2.5_1744148912445_0.2523608319145174","host":"s3://npm-registry-packages-npm-production"}},"1.2.7":{"name":"@benzn/to-ms","version":"1.2.7","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@1.2.7","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"9f3ae5f0578deb4d0bbef8923a7da9241c935a67","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-1.2.7.tgz","fileCount":9,"integrity":"sha512-p70QX1m3zkB6ijGyQnjsMKNhqNbsoJxtrTe5J1l5Y4SzorsSVrnVQCINA9aOALAvYjbcPVjIhRa1n/zeiTqYog==","signatures":[{"sig":"MEUCIE8NiPr9oDarhVYmhS2WTPX5eLrXFWvZ7lwp3S6kzi+OAiEAz0vV8SiuUB4Ss174/kQ/5F3vKb7VexPYKGFQ20SX7y0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15434},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-1.2.7.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\505a5317fbb33f4820909d02f7353ebf\\benzn-to-ms-1.2.7.tgz","_integrity":"sha512-p70QX1m3zkB6ijGyQnjsMKNhqNbsoJxtrTe5J1l5Y4SzorsSVrnVQCINA9aOALAvYjbcPVjIhRa1n/zeiTqYog==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","typescript-eslint":"^8.22.0"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_1.2.7_1744198790093_0.8230838668260556","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@benzn/to-ms","version":"2.0.1","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@2.0.1","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"17df37ec8435050e5447a0095d6d38482da5f7dc","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-2.0.1.tgz","fileCount":14,"integrity":"sha512-HYqhpj/myFM3acCneOscyU6BM4t0bnByefx2qhvqrTLBbjwY6piT+VXG2ZbV7SaGAhi7sBKd/SgqAg1MbIlOTA==","signatures":[{"sig":"MEQCIGO+F/gSibavEDLCs874bBDwIOm7Sy+cUegsd0ZJtW1BAiAn3k2Dvda3/Nv26GBqgo5ABKTWqly6eVUg8P2Z704SNA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23797},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-2.0.1.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"./extender":{"types":"./dist/types/extender.d.ts","import":"./dist/esm/extender.mjs","require":"./dist/cjs/extender.cjs"}},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\7cf7a24ced8816dc064f35be7554c4df\\benzn-to-ms-2.0.1.tgz","_integrity":"sha512-HYqhpj/myFM3acCneOscyU6BM4t0bnByefx2qhvqrTLBbjwY6piT+VXG2ZbV7SaGAhi7sBKd/SgqAg1MbIlOTA==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","typescript-eslint":"^8.22.0"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_2.0.1_1744295188404_0.961786419007143","host":"s3://npm-registry-packages-npm-production"}},"2.0.1-beta":{"name":"@benzn/to-ms","version":"2.0.1-beta","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@2.0.1-beta","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"cfb0acd989f52c4659e3de708bf38e1a825f0eb9","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-2.0.1-beta.tgz","fileCount":14,"integrity":"sha512-R8i55gWsFDWC1iWhZ2ItDBo0rXVRRBE1KPGZPCFz/2qD/XvpNSXj5ZJBjZS8TGBE79XOABO9VyrNoNyatJi16Q==","signatures":[{"sig":"MEUCIAGIKJF82ya90ZRoZMhSZT8J9465y0eyCO/HDMXXZEb+AiEA401gU0IkjZKx3vecteCWyowotPrhUVZKInUGChwWtqY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22920},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-2.0.1-beta.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"./extender":{"types":"./dist/types/extender.d.ts","import":"./dist/esm/extender.mjs","require":"./dist/cjs/extender.cjs"},"./tmsExtender":{"types":"./dist/types/tmsExtender.d.ts","import":"./dist/esm/tmsExtender.mjs","require":"./dist/cjs/tmsExtender.cjs"}},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\aae79e74948989512b92774419a66d3a\\benzn-to-ms-2.0.1-beta.tgz","_integrity":"sha512-R8i55gWsFDWC1iWhZ2ItDBo0rXVRRBE1KPGZPCFz/2qD/XvpNSXj5ZJBjZS8TGBE79XOABO9VyrNoNyatJi16Q==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","@benzn/to-ms":"^2.0.1","@types/mocha":"^10.0.10","typescript-eslint":"^8.22.0","@typescript-eslint/eslint-plugin":"^8.29.1"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_2.0.1-beta_1744299962585_0.03957499316087554","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"@benzn/to-ms","version":"2.0.5","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@2.0.5","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"109c5df48b9749b89d9f9818ad108e75f2a0a4c9","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-2.0.5.tgz","fileCount":14,"integrity":"sha512-EFbW9j320Qu/P03savH3iMMxujEB4d701Ab0bFF1tcs2xfNww1Eng5TEFe6PM/hfs36i8+3eBlXWBi2czGw0wQ==","signatures":[{"sig":"MEQCIGu24el8nsb4+u74D8RCkHrGXkWbm++uNcq4WJXMdiMtAiAKbHR42p+At2RTWWgAfEbiVqdFqUP/VRUIPmrUiT0kjw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23581},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-2.0.5.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"./extender":{"types":"./dist/types/extender.d.ts","import":"./dist/esm/extender.mjs","require":"./dist/cjs/extender.cjs"}},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\199ec66ce403a02245ee7610969b18bd\\benzn-to-ms-2.0.5.tgz","_integrity":"sha512-EFbW9j320Qu/P03savH3iMMxujEB4d701Ab0bFF1tcs2xfNww1Eng5TEFe6PM/hfs36i8+3eBlXWBi2czGw0wQ==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","@benzn/to-ms":"2.0.1-beta","@types/mocha":"^10.0.10","typescript-eslint":"^8.22.0","@typescript-eslint/eslint-plugin":"^8.29.1"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_2.0.5_1744306524945_0.4201771694124592","host":"s3://npm-registry-packages-npm-production"}},"2.0.7":{"name":"@benzn/to-ms","version":"2.0.7","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@2.0.7","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"94fe139eef07f45fed7e283f9f2f1fd358b3789d","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-2.0.7.tgz","fileCount":14,"integrity":"sha512-gAsEVcZXcieOza28ElBkzhVGl2tPMVB8Quf/lYtEqlaGkOlEeJICgLGSfIzFDiODc27Qkuv5MBIyzyyOmOcs+g==","signatures":[{"sig":"MEQCIBKQQtvH71W00GYfm4AFiMcPogupZTqZjOaTST9+OKi4AiAXeq7yrjpNVuXu6+wniReE/U12xTbViR+q8vouqMoTww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23578},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-2.0.7.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"./extender":{"types":"./dist/types/extender.d.ts","import":"./dist/esm/extender.mjs","require":"./dist/cjs/extender.cjs"}},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\e4dceefa53888689c11989b4e4633c7e\\benzn-to-ms-2.0.7.tgz","_integrity":"sha512-gAsEVcZXcieOza28ElBkzhVGl2tPMVB8Quf/lYtEqlaGkOlEeJICgLGSfIzFDiODc27Qkuv5MBIyzyyOmOcs+g==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","@benzn/to-ms":"2.0.5","@types/mocha":"^10.0.10","typescript-eslint":"^8.22.0","@typescript-eslint/eslint-plugin":"^8.29.1"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_2.0.7_1745073117319_0.3047695479986201","host":"s3://npm-registry-packages-npm-production"}},"2.0.8":{"name":"@benzn/to-ms","version":"2.0.8","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@2.0.8","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"f63a8ff591b7fc8acbe563a19ca69e09f43835a3","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-2.0.8.tgz","fileCount":14,"integrity":"sha512-278ncD1E/WH8xPFONp2DbmQqNDzkqAZ0PbMb35yOwUppbcOLXk74Mcr3UVjjUzQ0sCifiTeKdaAi/GScTDhQEg==","signatures":[{"sig":"MEYCIQDfHVPjlOelQnsM/RTG9Jl3b5pZfyAyerIkHYhreqVBOAIhALDQY6GAPo3pBZil5bza5KxzoLdTZ0jkxNF+JPeOVONE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26334},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-2.0.8.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"./extender":{"types":"./dist/types/extender.d.ts","import":"./dist/esm/extender.mjs","require":"./dist/cjs/extender.cjs"}},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\295da203d41e3d5047777ff59470d0c6\\benzn-to-ms-2.0.8.tgz","_integrity":"sha512-278ncD1E/WH8xPFONp2DbmQqNDzkqAZ0PbMb35yOwUppbcOLXk74Mcr3UVjjUzQ0sCifiTeKdaAi/GScTDhQEg==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","@benzn/to-ms":"2.0.5","@types/mocha":"^10.0.10","typescript-eslint":"^8.22.0","@typescript-eslint/eslint-plugin":"^8.29.1"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_2.0.8_1745073213343_0.563969422217026","host":"s3://npm-registry-packages-npm-production"}},"2.0.9":{"name":"@benzn/to-ms","version":"2.0.9","keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","_id":"@benzn/to-ms@2.0.9","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"homepage":"https://github.com/benzaria/to-ms#readme","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"dist":{"shasum":"8beab5f1140d7cee52c0ef172da2b4342816e84e","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-2.0.9.tgz","fileCount":14,"integrity":"sha512-4KDbZPB8JVdi8O1jSPFoVlA3Ey4FXqmV3K5h3h8LBlVakqwllW7I43rZlNGD4xzbrbD8jff/g4vWfNMlOkR1Vg==","signatures":[{"sig":"MEUCIQC2Kp+r9cF6847HW0ZN97Z0FO3I93IzROB8yJq0Pz7DQAIgDcX6Te1oKYbySR9ieuHzeFw5nYwSOexnlgoXmIgPGNU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22618},"main":"./dist/cjs/index.cjs","type":"module","_from":"file:benzn-to-ms-2.0.9.tgz","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"},"./extender":{"types":"./dist/types/extender.d.ts","import":"./dist/esm/extender.mjs","require":"./dist/cjs/extender.cjs"}},"scripts":{"test":"mocha","build":"npm run build:skip-check","prebuild":"npm run type-check && npm run lint-check","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:dts":"tsup --out-dir ./dist/types --dts-only","build:esm":"tsup --out-dir ./dist/esm --format esm","lint-check":"eslint ./src/","type-check":"tsc --noEmit","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts"},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\f6eea0a0619b9135f2cfa26bc1754902\\benzn-to-ms-2.0.9.tgz","_integrity":"sha512-4KDbZPB8JVdi8O1jSPFoVlA3Ey4FXqmV3K5h3h8LBlVakqwllW7I43rZlNGD4xzbrbD8jff/g4vWfNMlOkR1Vg==","repository":{"url":"git+https://github.com/benzaria/to-ms.git","type":"git"},"_npmVersion":"10.9.2","description":"Converts a time string with units to milliseconds","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.6","mocha":"^11.1.0","eslint":"^9.19.0","globals":"^15.14.0","@types/ms":"^2.1.0","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/node":"^22.13.0","@benzn/to-ms":"2.0.5","@types/mocha":"^10.0.10","typescript-eslint":"^8.22.0","@typescript-eslint/eslint-plugin":"^8.29.1"},"optionalDependencies":{"ms":"^2.1.3","jiri":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-ms_2.0.9_1745074828404_0.5232172033709046","host":"s3://npm-registry-packages-npm-production"}},"3.0.9":{"name":"@benzn/to-ms","version":"3.0.9","description":"Converts a time string with units to milliseconds","types":"./dist/types/index.d.ts","module":"./dist/esm/index.mjs","main":"./dist/cjs/index.cjs","type":"module","exports":{".":{"types":"./dist/types/index.d.ts","require":"./dist/cjs/index.cjs","import":"./dist/esm/index.mjs"},"./extender":{"types":"./dist/types/extender.d.ts","require":"./dist/cjs/extender.cjs","import":"./dist/esm/extender.mjs"}},"repository":{"type":"git","url":"git+https://github.com/benzaria/to-ms.git"},"publishConfig":{"access":"public"},"keywords":["ms","milliseconds","time","simple","fast"],"author":{"name":"benzaria"},"license":"MIT","bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"homepage":"https://github.com/benzaria/to-ms#readme","devDependencies":{"@benzn/to-ms":"2.0.5","@eslint/js":"^9.19.0","@types/mocha":"^10.0.10","@types/ms":"^2.1.0","@types/node":"^22.13.0","@typescript-eslint/eslint-plugin":"^8.29.1","eslint":"^9.19.0","globals":"^15.14.0","mocha":"^11.1.0","tsup":"^8.3.6","tsx":"^4.19.2","typescript":"^5.7.3","typescript-eslint":"^8.22.0"},"optionalDependencies":{"jiri":"^1.0.0","ms":"^2.1.3"},"scripts":{"test":"mocha","prebuild":"npm run type-check && npm run lint-check","build":"npm run build:skip-check","build:skip-check":"npm run build:cjs && npm run build:esm && npm run build:dts","build:dts":"tsup --out-dir ./dist/types --dts-only","build:cjs":"tsup --out-dir ./dist/cjs --format cjs","build:esm":"tsup --out-dir ./dist/esm --format esm","type-check":"tsc --noEmit","lint-check":"eslint ./src/"},"_id":"@benzn/to-ms@3.0.9","_integrity":"sha512-BCXJtbUaWGtYf6q9yzoV52//YfyM5CAk9YLAisBFZCs0aei5zQTYtGfecHlQS2INxxop9s3K17SCazPPryxnvw==","_resolved":"C:\\Users\\benz\\AppData\\Local\\Temp\\d20c792d90549ea98497835e0e0d144f\\benzn-to-ms-3.0.9.tgz","_from":"file:benzn-to-ms-3.0.9.tgz","_nodeVersion":"23.8.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-BCXJtbUaWGtYf6q9yzoV52//YfyM5CAk9YLAisBFZCs0aei5zQTYtGfecHlQS2INxxop9s3K17SCazPPryxnvw==","shasum":"23ad2d64c414e36afc32afd64678e4f6cd7c6e34","tarball":"https://registry.npmjs.org/@benzn/to-ms/-/to-ms-3.0.9.tgz","fileCount":14,"unpackedSize":22618,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFNS7nGEMIEZkBfZK+p6DvRzPbIV7jnFjEaSo3m6ysiIAiBobDwJpKtxe7OWnj3la6RpdsNgtu3VWFXwNgC0Smkf+g=="}]},"_npmUser":{"name":"benzaria","email":"benz.github@gmail.com"},"directories":{},"maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/to-ms_3.0.9_1746982748035_0.027812124010402117"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-30T16:42:55.643Z","modified":"2025-05-11T16:59:08.411Z","1.1.0":"2025-01-30T16:14:36.110Z","1.2.0":"2025-01-30T16:42:55.895Z","1.2.1":"2025-02-01T18:08:05.884Z","1.2.1-fix":"2025-02-01T18:24:46.209Z","1.2.2":"2025-02-01T18:28:35.687Z","1.2.3":"2025-02-02T17:40:19.407Z","1.2.5":"2025-04-08T21:48:32.599Z","1.2.7":"2025-04-09T11:39:50.265Z","2.0.1":"2025-04-10T14:26:28.577Z","2.0.1-beta":"2025-04-10T15:46:02.786Z","2.0.5":"2025-04-10T17:35:25.139Z","2.0.7":"2025-04-19T14:31:57.521Z","2.0.8":"2025-04-19T14:33:33.585Z","2.0.9":"2025-04-19T15:00:28.593Z","3.0.9":"2025-05-11T16:59:08.218Z"},"bugs":{"url":"https://github.com/benzaria/to-ms/issues"},"author":{"name":"benzaria"},"license":"MIT","homepage":"https://github.com/benzaria/to-ms#readme","keywords":["ms","milliseconds","time","simple","fast"],"repository":{"type":"git","url":"git+https://github.com/benzaria/to-ms.git"},"description":"Converts a time string with units to milliseconds","maintainers":[{"name":"benzaria","email":"benz.github@gmail.com"}],"readme":"# to-ms - Convert Time Strings to Milliseconds as *fast as posible*\r\n\r\n## Overview\r\n\r\n`to-ms` is a lightweight TypeScript utility that converts human-readable time strings (e.g., `\"5s\"`, `\"2.6 h\"`) into milliseconds.  \r\nIt supports multiple time units, making it easy to work with time-based calculations.  \r\n\r\n**Why use it ?** : because its faster that `ms` by **40%**. [Tests?](#tests)\r\n\r\n## Installation\r\n\r\nYou can install `to-ms` via npm or yarn:\r\n\r\n```bash\r\nnpm install @benzn/to-ms\r\n```\r\n\r\nor\r\n\r\n```bash\r\nyarn add @benzn/to-ms\r\n```\r\n\r\n## Usage\r\n\r\n### Import\r\n\r\n```typescript\r\nimport tms from \"@benzn/to-ms\";\r\n```\r\n\r\n### Require\r\n\r\n```typescript\r\nconst tms = require(\"@benzn/to-ms\")\r\n```\r\n\r\n\r\n### Converting Time Strings to Milliseconds\r\n\r\n```typescript\r\nconsole.log(tms(\"5s\"));   // 5000 (5 seconds in ms)\r\nconsole.log(tms(\"2m\"));   // 120000 (2 minutes in ms)\r\nconsole.log(tms(\"1h\"));   // 3600000 (1 hour in ms)\r\nconsole.log(tms(\"1d\"));   // 86400000 (1 day in ms)\r\nconsole.log(tms(\"1M\"));   // 2629800000 (1 month in ms, avg 30.436875 days)\r\nconsole.log(tms(\"1y\"));   // 31557600000 (1 year in ms, avg 365.25 days)\r\n```\r\n\r\n### Passing Numbers\r\n\r\nIf a number is passed, the function returns it as-is, but logs a warning:\r\n\r\n```typescript\r\nconsole.log(tms(5000));   // 5000 (Warning: The input was a number, no need for converting)\r\n```\r\n\r\n> [!NOTE]\r\n> **For now** `to-ms` Does Not convert numbers back to human-readable time strings. for that use [ms](https://github.com/vercel/ms).  \r\n> **It will be included in future updates**\r\n\r\n## Tests\r\n\r\nTo test it run `npm test`,or `npx mocha`\r\n\r\n<details>\r\n  <summary>Test results compared to 'ms'</summary>\r\n\r\ntms: 122ms, 246ms  \r\nms : 227ms, 505ms  \r\n![test1](https://raw.githubusercontent.com/benzaria/to-ms/main/imgs/test1.png)\r\n\r\n  <details>\r\n    <summary>More?</summary>\r\n\r\ntms: 122ms, 246ms  \r\nms : 227ms, 505ms  \r\n![test2](https://raw.githubusercontent.com/benzaria/to-ms/main/imgs/test2.png)\r\n\r\ntms: 122ms, 246ms  \r\nms : 227ms, 505ms  \r\n![test3](https://raw.githubusercontent.com/benzaria/to-ms/main/imgs/test3.png)\r\n\r\n  </details>\r\n</details>\r\n\r\n## Supported Time Units\r\n\r\n| Unit  |       Description        | Example |\r\n| :---: | :----------------------: | :-----: |\r\n| `ms`  |       Milliseconds       | `500ms` |\r\n|  `s`  |         Seconds          |  `5s`   |\r\n|  `m`  |         Minutes          |  `2m`   |\r\n|  `h`  |          Hours           |  `1h`   |\r\n|  `d`  |           Days           |  `1d`   |\r\n|  `w`  |          Weeks           |  `1w`   |\r\n|  `M`  | Months (≈30.436875 days) |  `1M`   |\r\n|  `y`  |   Years (≈365.25 days)   |  `1y`   |\r\n\r\n## TypeScript Support\r\n\r\nThe function is fully typed for TypeScript. The input type ensures only valid time formats are allowed.\r\n\r\n- **errors**\r\n\r\n```typescript\r\ntms(\"5x\"); // ❌ TypeScript error - Invalid unit\r\n```\r\n\r\n- **exports**\r\n  \r\n```typescript\r\nimport tms, { msInput, msUnits } from \"@benzn/to-ms\"\r\n\r\ntms(value as msInput)\r\n```\r\n\r\n## Error Handling\r\n\r\nThe function throws errors in the following cases:\r\n\r\n- **Invalid Format**: If the input is not a recognized time format.\r\n- **Incorrect Type**: If the input is neither a string nor a number.\r\n\r\n```typescript\r\n// manual\r\ntry {\r\n    tms(\"invalid\"); //=> throws Error\r\n} catch (error) {\r\n    console.error(error.message); // \"Invalid time format, support:[ms,s,m,h,d,w,M,y]\"\r\n}\r\n\r\n// automatic\r\ntms(\"invalid\", true); //=> logs Error\r\n```\r\n\r\n## License\r\n\r\n[MIT](https://github.com/benzaria/to-ms/blob/main/blob/main/LICENSE)\r\n","readmeFilename":"README.md"}