{"_id":"to-time","_rev":"1704441","name":"to-time","description":"Utility for converting textual time periods to time units","dist-tags":{"latest":"3.0.2"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"time":{"modified":"2026-11-09T12:00:10.000Z","created":"2016-07-10T00:08:46.817Z","3.0.2":"2026-03-28T21:38:30.446Z","3.0.1":"2026-03-28T21:35:06.455Z","3.0.0":"2026-03-28T21:22:19.810Z","2.0.0":"2026-03-28T21:02:44.092Z","1.0.2":"2016-10-03T16:20:33.108Z","1.0.1":"2016-10-03T02:41:06.202Z","1.0.0":"2016-10-03T02:39:29.216Z","0.2.4":"2016-10-03T02:37:39.760Z","0.2.3":"2016-10-03T02:14:54.509Z","0.2.2":"2016-08-09T21:20:10.096Z","0.2.1":"2016-07-17T15:30:28.892Z","0.2.0":"2016-07-16T19:52:40.292Z","0.1.4":"2016-07-16T19:52:07.836Z","0.1.3":"2016-07-16T15:33:02.239Z","0.1.2":"2016-07-15T13:33:48.353Z","0.1.1":"2016-07-11T23:33:06.135Z","0.1.0":"2016-07-10T00:08:46.817Z"},"users":{},"author":{"name":"Matan Hafuta"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"versions":{"3.0.2":{"name":"to-time","version":"3.0.2","description":"Utility for converting textual time periods to time units","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"sideEffects":false,"directories":{"test":"test"},"scripts":{"pretest":"npm run build","prepublishOnly":"npm run build","test-source":"mocha ./test/spec","test-build":"mocha ./test/specBuild.js ./test/specBuildEsm.mjs ./test/specUmd.js","test":"npm run test-source && npm run test-build","coverage":"nyc npm run test-source","lint":"eslint .","build":"rollup -c rollup.config.mjs","build-min":"npm run build"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"@eslint/js":"^9.39.4","@rollup/plugin-commonjs":"^28.0.2","@rollup/plugin-node-resolve":"^16.0.0","@rollup/plugin-terser":"^0.4.4","@stylistic/eslint-plugin":"^4.4.1","chai":"^4.5.0","eslint":"^9.39.4","globals":"^16.5.0","mocha":"^11.7.5","nyc":"^17.1.0","rollup":"^4.34.9"},"overrides":{"serialize-javascript":"^7.0.5","diff":"^8.0.4"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^9.1.2"},"engines":{"node":">=20.19.0"},"nyc":{"include":["src/**/*.js"],"reporter":["text","html"],"exclude":["test/**"]},"gitHead":"83bdb76be46343513797d940219c4f094ead3cb1","_id":"to-time@3.0.2","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_nodeVersion":"22.14.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-P2ijUskss+hdhtQ7rnjVTqa1X9ez1cmP+sa3uDKIF6MKBTZ5JwWM7ee8n71XVNCn0DafkrJA6DnwuEp6Uv4kog==","shasum":"01909a37278f49331622841c196e4e910f391ebb","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-3.0.2.tgz","fileCount":11,"unpackedSize":178946,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/to-time@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBUOBC2wKUtb9rwt8j/ufkSq04K4vpstNbbAfFBYgWI8AiEAqnJjaKKJ3Or9HhFw9+HWZf5cJu7y0leGhm3gGq03N+U="}],"size":43923,"noattachment":false,"key":"/to-time/-/to-time-3.0.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9bf8feda-8e50-44b6-8230-1d8bcb5c20a1"}},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/to-time_3.0.2_1774733910298_0.6347377265115501"},"_hasShrinkwrap":false,"publish_time":1774733910446,"_cnpm_publish_time":1774733910446},"3.0.1":{"name":"to-time","version":"3.0.1","author":{"name":"Matan Hafuta"},"license":"MIT","_id":"to-time@3.0.1","maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"homepage":"https://github.com/hafuta/to-time#readme","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"nyc":{"exclude":["test/**"],"include":["src/**/*.js"],"reporter":["text","html"]},"dist":{"shasum":"e9293204f464f04a7bbc1e2e7deec4a372ad1e56","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-3.0.1.tgz","fileCount":11,"integrity":"sha512-C9y6o0Dl0lJhviUNlG2gDhelEMl9/BOc3spObKxX6IvCaRm1Mf1RShvHM3N0nhPblZ2pRj03G77Mxsx2W4dnlw==","signatures":[{"sig":"MEYCIQCnEYMinlTFRDGd1j156FfN4a3j+4/VkkaCtMCdMr2U2gIhAOW3WSGxU+knDqaor2eAOQS+0vEYe/M90aMz7Fu9QO+x","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/to-time@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":178139,"size":43545,"noattachment":false,"key":"/to-time/-/to-time-3.0.1.tgz"},"main":"./dist/index.cjs","types":"./types/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"ea8f36bc47c8eea5a65d8f17b1b8dad5ee9884d4","scripts":{"lint":"eslint .","test":"npm run test-source && npm run test-build","build":"rollup -c rollup.config.mjs","pretest":"npm run build","coverage":"nyc npm run test-source","build-min":"npm run build","test-build":"mocha ./test/specBuild.js ./test/specBuildEsm.mjs ./test/specUmd.js","test-source":"mocha ./test/spec","prepublishOnly":"npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9bf8feda-8e50-44b6-8230-1d8bcb5c20a1"}},"overrides":{"diff":"^8.0.4","serialize-javascript":"^7.0.5"},"repository":{"url":"git+https://github.com/hafuta/to-time.git","type":"git"},"_npmVersion":"11.12.1","description":"Utility for converting textual time periods to time units","directories":{"test":"test"},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"bignumber.js":"^9.1.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^4.5.0","mocha":"^11.7.5","eslint":"^9.39.4","rollup":"^4.34.9","globals":"^16.5.0","@eslint/js":"^9.39.4","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^28.0.2","@stylistic/eslint-plugin":"^4.4.1","@rollup/plugin-node-resolve":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-time_3.0.1_1774733706254_0.7581746723136853","host":"s3://npm-registry-packages-npm-production"},"publish_time":1774733706455,"_cnpm_publish_time":1774733706455},"3.0.0":{"name":"to-time","version":"3.0.0","author":{"name":"Matan Hafuta"},"license":"MIT","_id":"to-time@3.0.0","maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"homepage":"https://github.com/hafuta/to-time#readme","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"nyc":{"exclude":["test/**"],"include":["src/**/*.js"],"reporter":["text","html"]},"dist":{"shasum":"30e22ad81ea841014530c72d9d688fe22e1a6831","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-3.0.0.tgz","fileCount":11,"integrity":"sha512-LShcO0ADay5uxr49spGkTyTmzh1NnZ4zSczInZt+sM12r2GXaSPhBLMZJpXB8BGd/ZdEq2XNTOlzuqACw+t5KA==","signatures":[{"sig":"MEUCIQDYUlDdWHu/jq1K2ba1+Rta8C+nT87tQQM0L+TOLPOMwAIgBlnJ4GP8nVzwEu1v3umZlnwpPU+CaavezDQpLxUYBhQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/to-time@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":178087,"size":43512,"noattachment":false,"key":"/to-time/-/to-time-3.0.0.tgz"},"main":"./dist/index.cjs","types":"./types/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"2388626a46fa23cbfb92904c60b84703a3097b29","scripts":{"lint":"eslint .","test":"npm run test-source && npm run test-build","build":"rollup -c rollup.config.mjs","pretest":"npm run build","coverage":"nyc npm run test-source","build-min":"npm run build","test-build":"mocha ./test/specBuild.js ./test/specBuildEsm.mjs ./test/specUmd.js","test-source":"mocha ./test/spec","prepublishOnly":"npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9bf8feda-8e50-44b6-8230-1d8bcb5c20a1"}},"overrides":{"diff":"^8.0.4","serialize-javascript":"^7.0.5"},"repository":{"url":"git+https://github.com/hafuta/to-time.git","type":"git"},"_npmVersion":"11.12.1","description":"Utility for converting textual time periods to time units","directories":{"test":"test"},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"bignumber.js":"^9.1.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^4.5.0","mocha":"^11.7.5","eslint":"^9.39.4","rollup":"^4.34.9","globals":"^16.5.0","@eslint/js":"^9.39.4","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^28.0.2","@stylistic/eslint-plugin":"^4.4.1","@rollup/plugin-node-resolve":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-time_3.0.0_1774732939608_0.8509906871893977","host":"s3://npm-registry-packages-npm-production"},"publish_time":1774732939810,"_cnpm_publish_time":1774732939810},"2.0.0":{"name":"to-time","version":"2.0.0","author":{"name":"Matan Hafuta"},"license":"MIT","_id":"to-time@2.0.0","maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"homepage":"https://github.com/hafuta/to-time#readme","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"nyc":{"exclude":["test/**"],"include":["src/**/*.js"],"reporter":["text","html"]},"dist":{"shasum":"e57a2cebf29f4119913ee8efe1bf4577b43f3d7e","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-2.0.0.tgz","fileCount":19,"integrity":"sha512-JVp+C8Lc11Mkr+FRPuPhDWn68adYAvDVVCzLA9uRoZd4UmATrhVOXobZ10kHiAMJFFYDoEZBVwPn7RIz3audkA==","signatures":[{"sig":"MEUCIChThAQR1F63AyXQfMYKf3mXWkvRfUwpQFTz1+4prdHCAiEA0t/ZenxPH9pVtND6e5adepG5Vf0aNI8mgmxdHxQ6HBw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/to-time@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":165637,"size":43136,"noattachment":false,"key":"/to-time/-/to-time-2.0.0.tgz"},"main":"src/index.js","engines":{"node":">=20.19.0"},"gitHead":"241c8e4b2d8ef4000cba13b6dc34cd8058aebc25","scripts":{"lint":"eslint .","test":"npm run test-source && npm run test-build","build":"rollup -c rollup.config.mjs","pretest":"npm run build","coverage":"nyc npm run test-source","build-min":"npm run build","test-build":"mocha ./test/specBuild","test-source":"mocha ./test/spec"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9bf8feda-8e50-44b6-8230-1d8bcb5c20a1"}},"overrides":{"diff":"^8.0.4","serialize-javascript":"^7.0.5"},"repository":{"url":"git+https://github.com/hafuta/to-time.git","type":"git"},"_npmVersion":"11.12.1","description":"Utility for converting textual time periods to time units","directories":{"test":"test"},"_nodeVersion":"22.14.0","dependencies":{"bignumber.js":"^9.1.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^4.5.0","mocha":"^11.7.5","eslint":"^9.39.4","rollup":"^4.34.9","globals":"^16.5.0","@eslint/js":"^9.39.4","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^28.0.2","@stylistic/eslint-plugin":"^4.4.1","@rollup/plugin-node-resolve":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/to-time_2.0.0_1774731763924_0.9565843135628469","host":"s3://npm-registry-packages-npm-production"},"publish_time":1774731764092,"_cnpm_publish_time":1774731764092},"1.0.2":{"name":"to-time","version":"1.0.2","description":"Utility for converting textual time periods to time units","main":"src/index.js","directories":{"test":"test"},"scripts":{"test-source":"mocha ./test/spec","test-build":"mocha ./test/specBuild","test":"npm run test-source && npm run test-build","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"babel-core":"^6.13.2","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","browserify":"^13.1.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.2.2","istanbul":"^0.4.4","mocha":"^3.0.1","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"2daf356a5f05e578ffd0dede72fa7140001e7453","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@1.0.2","_shasum":"4f8145a07d85f6356a62e1cea0a7a9e6661776e3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"4f8145a07d85f6356a62e1cea0a7a9e6661776e3","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-1.0.2.tgz","integrity":"sha512-+wqaiQvnido2DI1bpiQ/Zv1LiOE9Fd0v35ySnNeqFmKNYJTJY/+ENI+3sHXCMzbAAOR/43aNyLM0XTpi0/zSQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIDIMOQLgFPOK1OoDxj0eZw8Z2d8Mbzs9cNvofrIQxoQIhAP/qSuKbjbPmQ1hdMCcbkzuvg4unwKCRg/Jfau1EcboK"}],"size":41661,"noattachment":false,"key":"/to-time/-/to-time-1.0.2.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-time-1.0.2.tgz_1475511631601_0.6098253428936005"},"publish_time":1475511633108,"_cnpm_publish_time":1475511633108},"1.0.1":{"name":"to-time","version":"1.0.1","description":"Utility for converting textual time periods to time units","main":"src/index.js","directories":{"test":"test"},"scripts":{"test-source":"mocha ./test/spec","test-build":"mocha ./test/specBuild","test":"npm run test-source && npm run test-build","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"babel-core":"^6.13.2","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","browserify":"^13.1.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.2.2","istanbul":"^0.4.4","mocha":"^3.0.1","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"91bd48c34281e96371d6b2b1e5fcf4ed3f7ebe93","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@1.0.1","_shasum":"24ad706614867d9e1f2f0151a8d879be8f46dc06","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"24ad706614867d9e1f2f0151a8d879be8f46dc06","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-1.0.1.tgz","integrity":"sha512-k8z/bqi/K4eB+IuwWthnpKLNYbNlBflAftUgvQV4ScVtC7y3iVk4dMuXqOAEnMf5p2eesiloGbS01tgU9CC3lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIGpPgH9LOq+49SuwFBufMzANunUqIT7dxgEu/7O6udgIhANACJ2zfM3bbiyzyJb6/lUOaeG40VxjyGGuCnh34LKgO"}],"size":40971,"noattachment":false,"key":"/to-time/-/to-time-1.0.1.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-time-1.0.1.tgz_1475462464879_0.9862177376635373"},"publish_time":1475462466202,"_cnpm_publish_time":1475462466202},"1.0.0":{"name":"to-time","version":"1.0.0","description":"Utility for converting textual time periods to time units","main":"src/index.js","directories":{"test":"test"},"scripts":{"test-source":"mocha ./test/spec","test-build":"mocha ./test/specBuild","test":"npm run test-source && npm run test-build","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"babel-core":"^6.13.2","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","browserify":"^13.1.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.2.2","istanbul":"^0.4.4","mocha":"^3.0.1","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"2eaa276ad0bc83d110b60815ca2acd819ead44b6","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@1.0.0","_shasum":"7c9375c76925bfd655e9b0398baa0d5597a6b7db","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"7c9375c76925bfd655e9b0398baa0d5597a6b7db","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-1.0.0.tgz","integrity":"sha512-1SN57auDCAOTPdSZBFnJcucED/TyI6dyu0O71FDycfkVa9rJzc/lUM7NJniyGX9lt0Vhb4fcLGMku0JhdgEbfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICfk6Xn/fkKhWFvg5K0cHd2CxllLTpGwU5AjrhXqBWFjAiBB3qGWazwCzlJzpm7zQlR+XhwHibNhAJOf9eyb5kC2ug=="}],"size":40982,"noattachment":false,"key":"/to-time/-/to-time-1.0.0.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-1.0.0.tgz_1475462367343_0.8397808780428022"},"publish_time":1475462369216,"_cnpm_publish_time":1475462369216},"0.2.4":{"name":"to-time","version":"0.2.4","description":"Utility for converting textual time periods to time units","main":"src/index.js","directories":{"test":"test"},"scripts":{"test-source":"mocha ./test/spec","test-build":"mocha ./test/specBuild","test":"npm run test-source && npm run test-build","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"babel-core":"^6.13.2","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","browserify":"^13.1.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.2.2","istanbul":"^0.4.4","mocha":"^3.0.1","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"ba8bbfcace538c8ba5d4349fc1597acb644aad14","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.2.4","_shasum":"fede7aef252bcd56ed0f159b8191ae1861ffc9d7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"fede7aef252bcd56ed0f159b8191ae1861ffc9d7","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.2.4.tgz","integrity":"sha512-Dlf+0qNlaW4EeB8YDcgXZqA2XzBRy+IhPrRG6GaCehU0peuQ9jkw+KuUpchXevs8V2KFUj5+imeK4SzVfITg1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnekQOs3m8+uzK0cV5hv0r+wHii+dciXYSUNQC1Xi+PAiEAswugfEnDefEysJKtD7CsYKXTM929CT6Clpg+KsxvREQ="}],"size":40984,"noattachment":false,"key":"/to-time/-/to-time-0.2.4.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-0.2.4.tgz_1475462258076_0.4577068518847227"},"publish_time":1475462259760,"_cnpm_publish_time":1475462259760},"0.2.3":{"name":"to-time","version":"0.2.3","description":"Utility for converting textual time periods to time units","main":"src/index.js","directories":{"test":"test"},"scripts":{"test-source":"mocha ./test/spec","test-build":"mocha ./test/specBuild","test":"npm run test-source && npm run test-build","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"babel-core":"^6.13.2","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","browserify":"^13.1.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.2.2","istanbul":"^0.4.4","mocha":"^3.0.1","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"03a3872e05cb5599dc047fa13df36f5c3bd22248","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.2.3","_shasum":"59bda64807d0ade4be3976867b3418fb55b74227","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"59bda64807d0ade4be3976867b3418fb55b74227","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.2.3.tgz","integrity":"sha512-d0FXLxm5Lbff6EAY6QZnpdXxApIXj8n8IHhQmh2rs7LKPO228gJ/PVePGtEKjmzGAiWWAf8SHjo860kPylkpyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSpeRpEbyMzKuoRPJ3zV1EGRjDHz+15HXKcaAzA67l1AiEA6fenM+UGqjh4I5JqTsAWrUTkuF7mhS79KPaYq8phXRE="}],"size":40915,"noattachment":false,"key":"/to-time/-/to-time-0.2.3.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-0.2.3.tgz_1475460892639_0.018183992709964514"},"publish_time":1475460894509,"_cnpm_publish_time":1475460894509},"0.2.2":{"name":"to-time","version":"0.2.2","description":"Utility for converting textual time periods to time units","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test-source":"mocha ./test/spec","test-build":"mocha ./test/specBuild","test":"npm run test-source && npm run test-build","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"babel-core":"^6.13.2","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","browserify":"^13.1.0","chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.2.2","istanbul":"^0.4.4","mocha":"^3.0.1","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"12923524287923161a8c4580a94d7e37ff588610","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.2.2","_shasum":"d073dc95b78c0b86246eaea3c907132a4adbbddd","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.1","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"d073dc95b78c0b86246eaea3c907132a4adbbddd","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.2.2.tgz","integrity":"sha512-wawMLtRgSlp9GhO88VjvSsKZ6l9lpVBwAVE0PmADvRfP3AJeSe9qEieijW/JO2fRM/YW6lllsPQkpe5ROy6vQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAp8BuAdMRepxaCEk3QPyk0BfU8pJgcYMzmE5++5BjuuAiAqUwFKkyIDeqVqinr0jOpM7s21EhNOq0JPLcF974HGlg=="}],"size":40960,"noattachment":false,"key":"/to-time/-/to-time-0.2.2.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-0.2.2.tgz_1470777608276_0.1002746217418462"},"publish_time":1470777610096,"_cnpm_publish_time":1470777610096},"0.2.1":{"name":"to-time","version":"0.2.1","description":"Utility for converting textual time periods to time units","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha ./test","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"browserify":"^13.0.1","babel-core":"^6.10.4","mocha":"^2.5.3","chai":"^3.5.0","istanbul":"^0.4.4","babel-preset-es2015":"^6.9.0","babelify":"^7.3.0","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"137f0d225b3220736e52772a56b8b813c32a7ced","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.2.1","_shasum":"2191fb31ae78eceef05095cf08cfacb52b2c7397","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"2191fb31ae78eceef05095cf08cfacb52b2c7397","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.2.1.tgz","integrity":"sha512-uD9KUBhWajDtDMB0KBEsEumvaDtidqlFtI6OXbxu5R6PKUUnGmNVgwi6EEXnmxPAdVFf32VYnRCCuZEX8UNqKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtEXIa6xLlcRtwyiTnkA3JVZJXVrkCU8QK2dnfe1gjkAiEAunbKA4JVA0n9up3H2caIREoXRl6yWkgmHNoE9m83Mhs="}],"size":40706,"noattachment":false,"key":"/to-time/-/to-time-0.2.1.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-time-0.2.1.tgz_1468769427588_0.4406494493596256"},"publish_time":1468769428892,"_cnpm_publish_time":1468769428892},"0.2.0":{"name":"to-time","version":"0.2.0","description":"Utility for converting textual time periods to time units","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha ./test","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"browserify":"^13.0.1","babel-core":"^6.10.4","mocha":"^2.5.3","chai":"^3.5.0","istanbul":"^0.4.4","babel-preset-es2015":"^6.9.0","babelify":"^7.3.0","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"20bbd99657fc40afc35007dfcb283f189d41e5e8","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.2.0","_shasum":"742baabdef20aa7231c1af45e5a40ea55399f7ad","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"742baabdef20aa7231c1af45e5a40ea55399f7ad","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.2.0.tgz","integrity":"sha512-q/8ElB0XQw1z0oxDbN3Nh85nepFAYloF1c0tdcD7MmFA/qmCkekuFqi0eG9JCUcjp17Upgbjylt3TK+mbDRYGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaytokTrcjXNR7efhGc29AofnR9CctNpp1+0c/DRQNhAiEA2pIFX5CXvldbIPDwhhv35BUvX6/qZSP6y+UyyeT9dmQ="}],"size":40710,"noattachment":false,"key":"/to-time/-/to-time-0.2.0.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-0.2.0.tgz_1468698757705_0.6670665359124541"},"publish_time":1468698760292,"_cnpm_publish_time":1468698760292},"0.1.4":{"name":"to-time","version":"0.1.4","description":"Utility for converting textual time periods to time units","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha ./test","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"browserify":"^13.0.1","babel-core":"^6.10.4","mocha":"^2.5.3","chai":"^3.5.0","istanbul":"^0.4.4","babel-preset-es2015":"^6.9.0","babelify":"^7.3.0","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"53ba71923b933def599a3a1aa8d84ecc468011c3","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.1.4","_shasum":"3094f032d494f29bc5a78cc5bd9004b76c24747b","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"3094f032d494f29bc5a78cc5bd9004b76c24747b","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.1.4.tgz","integrity":"sha512-MpeCCWjgMUF0s1MmJIQaWn4t9w9THrpayQP2uuw3ngXrL9St/CX4F7d6F6vk/jxsGbPLE0CWn1VVyG4ZlrCaGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDunonlZUxJkhCHNna7ZKQdAZfOgelTeRNJBKHMDKpd6gIhAMmKPIG2J10/WTalxy48Eb58s6yOT7tvzXkWcia42Ki/"}],"size":40709,"noattachment":false,"key":"/to-time/-/to-time-0.1.4.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-time-0.1.4.tgz_1468698726736_0.9167837637942284"},"publish_time":1468698727836,"_cnpm_publish_time":1468698727836},"0.1.3":{"name":"to-time","version":"0.1.3","description":"Utility for converting textual time periods to time units","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha ./test","coverage":"istanbul cover _mocha","lint":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","build":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js -o lib/to-time.js","build-min":"browserify --standalone to-time -t [ babelify --presets [ es2015 ] ] src/index.js | ./node_modules/.bin/uglifyjs --compress --screw-ie8 > lib/to-time.min.js"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"browserify":"^13.0.1","babel-core":"^6.10.4","mocha":"^2.5.3","chai":"^3.5.0","istanbul":"^0.4.4","babel-preset-es2015":"^6.9.0","babelify":"^7.3.0","uglify-js":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"dependencies":{"bignumber.js":"^2.4.0"},"gitHead":"84ec1b706400e6b95840eff882fbab02f55f0691","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.1.3","_shasum":"d37aa2c4ba30b01de52aad44fd970ee53dcfbaab","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"d37aa2c4ba30b01de52aad44fd970ee53dcfbaab","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.1.3.tgz","integrity":"sha512-0s52d6cqi44TAsGq8s0kWouBElSOYydROM0oDhsvHlpul/cDLKwN1iE6tDVLW2Z5CWWbmvnXkD4diLPZutoeJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+/IVr/BzlU1hYMax1F6eZ/32sBSI63U+Kfm3Zxb21ZQIgCfQPTsQidZlmgGxWUSUUSr27KSBDkoCkS8wFri/li8o="}],"size":40780,"noattachment":false,"key":"/to-time/-/to-time-0.1.3.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-0.1.3.tgz_1468683179674_0.3493667140137404"},"publish_time":1468683182239,"_cnpm_publish_time":1468683182239},"0.1.2":{"name":"to-time","version":"0.1.2","description":"Library for transforming textual timespan representation into time values","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha ./test","istanbul":"istanbul cover _mocha","lint":"npm run lint-lib && npm run lint-server-test","lint-lib":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","lint-server-test":"eslint -c ./test/.eslintrc.json --ignore-path ./test/.eslintignore ./test"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"istanbul":"^0.4.4","chai":"^3.5.0","mocha":"^2.5.3"},"repository":{"type":"git","url":"git+https://github.com/hafuta/to-time.git"},"gitHead":"cafec52112d8fc87dad8818d93610f78fc6db1e3","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"homepage":"https://github.com/hafuta/to-time#readme","_id":"to-time@0.1.2","_shasum":"7540d44927a432f8724808b39fef1047f0e518ce","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"7540d44927a432f8724808b39fef1047f0e518ce","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.1.2.tgz","integrity":"sha512-Nf3FKBv3+7EEYj/dkpLs9OSBtWxSj1N6FHbm8fR7xiHeim0hWf7kDYN/ZLFF04WT6P/1Tla6fyvHqkOu39yKAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICY7q6jA7TD2cI8c6fNlMmGiCoWWQMssAGGCBc9p92/fAiArl6CHbX4ZJI03b0ljT1XgkwXshJ4gBo4AE93nTLfWBw=="}],"size":6239,"noattachment":false,"key":"/to-time/-/to-time-0.1.2.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-0.1.2.tgz_1468589625587_0.3680908177047968"},"publish_time":1468589628353,"_cnpm_publish_time":1468589628353},"0.1.1":{"name":"to-time","version":"0.1.1","description":"Library for transforming textual timespan representation into time values","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha ./test","istanbul":"istanbul cover _mocha","lint":"npm run lint-lib && npm run lint-server-test","lint-lib":"eslint -c .eslintrc.json --ignore-path ./.eslintignore .","lint-server-test":"eslint -c ./test/.eslintrc.json --ignore-path ./test/.eslintignore ./test"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"istanbul":"^0.4.4","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"8129729f03c2c5227bee261622907292d811cccc","_id":"to-time@0.1.1","_shasum":"654b33c8258ebb94563eba06e93bcad16fe95764","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"654b33c8258ebb94563eba06e93bcad16fe95764","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.1.1.tgz","integrity":"sha512-bxEmNi8o/KwVKkZWA/QDHbCNfqz3iAbC27qFGYVyYLWi3oe3ZpVHZdzubGDoMqo0oRG0ro0oLCQbe73Y/a0h0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC756qeOzeEfArFbvjIiGyf9O1bMgV7VrtiBplqaP/WAgIgCECxHh2Oag7seKJsM6J/bRZtHh05ikKJm84LwRCxOFM="}],"size":6200,"noattachment":false,"key":"/to-time/-/to-time-0.1.1.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-time-0.1.1.tgz_1468279984558_0.9038023387547582"},"publish_time":1468279986135,"_cnpm_publish_time":1468279986135},"0.1.0":{"name":"to-time","version":"0.1.0","description":"Library for transforming textual timespan representation into time values","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha ./test","istanbul":"istanbul cover _mocha"},"author":{"name":"Matan Hafuta"},"license":"MIT","devDependencies":{"istanbul":"^0.4.4","chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"758befb4f9762fc0ee40d1690131cb7fc888ab1d","_id":"to-time@0.1.0","_shasum":"a26df9e7432fdae88ee5d3a8904635e0c5245f2b","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"hafuta","email":"matan@hafuta.com"},"dist":{"shasum":"a26df9e7432fdae88ee5d3a8904635e0c5245f2b","tarball":"http://registry-npm.ywwl.com/to-time/download/to-time-0.1.0.tgz","integrity":"sha512-bOq4UoOAAMWwZ85tZhOd+9GO9x4z7XsKiPDcGBKxwXYEcerZmlMIBYScggVPwCCHm9UhiZTMQb6CgJjFTHSU7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFH/E5UfUWaZPXowhjPbalwTGGul8MBfXV8wnHexV6xNAiEA7Xf/15oMm9UNtUbRCfyqsekC5ldfotEspfTl69RqQkE="}],"size":5854,"noattachment":false,"key":"/to-time/-/to-time-0.1.0.tgz"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-time-0.1.0.tgz_1468109324376_0.30697753513231874"},"publish_time":1468109326817,"_cnpm_publish_time":1468109326817}},"readme":"# to-time\n[![CI](https://img.shields.io/github/actions/workflow/status/hafuta/to-time/ci.yml?branch=master)](https://github.com/hafuta/to-time/actions/workflows/ci.yml) [![npm version](https://img.shields.io/npm/v/to-time)](https://www.npmjs.com/package/to-time)\n\nUtility for converting textual time periods to time units (milliseconds, seconds, minutes, hours, etc..).\n\n**Due to the lack of precision in floating point numbers arithmetic and the need of keeping the results precise the utility is using the [bignumber.js](https://github.com/MikeMcl/bignumber.js/) library for arithmetic operations on numbers.**\n\n## Install\n\n```sh\nnpm install to-time\n```\n\n**Node.js 20.19+** is required (see `engines` in `package.json`).\n\n## Importing\n\nThe package is built as **dual ESM / CommonJS** and defines an [`exports`](https://nodejs.org/api/packages.html#exports) map in `package.json`. Use the package name `to-time` only—tools resolve it to `dist/index.mjs` (ESM) or `dist/index.cjs` (CJS). TypeScript types are exposed through the same entry.\n\n### Node.js and bundlers (ESM)\n\n```javascript\nimport toTime from 'to-time';\n```\n\nUse this in projects with `\"type\": \"module\"` in `package.json`, in `.mjs` files, or when your bundler targets ESM.\n\n### Node.js and bundlers (CommonJS)\n\n```javascript\nconst toTime = require('to-time');\n```\n\n### TypeScript\n\n```typescript\nimport toTime from 'to-time';\n```\n\nThe same import works with `moduleResolution` set to `node16`, `nodenext`, or `bundler` (recommended for modern tooling).\n\n### Browser (UMD)\n\nFor a plain script tag without a bundler, use the UMD build under `lib/`. **BigNumber.js is bundled** into these files; you do not need a separate script for it.\n\n```html\n<script src=\"node_modules/to-time/lib/to-time.min.js\"></script>\n<!-- exposes global: window.toTime -->\n```\n\nA non-minified file is also published: `node_modules/to-time/lib/to-time.js`.\n\n## Usage\nConverting from textual time period to time units\n\n```javascript\ntoTime('1 hour').seconds(); //3600\n//same as:\ntoTime('1h').seconds(); //3600\n\ntoTime('1 Year 365 Days 4 Hours').hours(); //17524\n//same as:\ntoTime('1y 365d 4h').hours(); //17524\n```\n\nUseful for usage in methods such as setInterval and setTimeout which consume the second argument in milliseconds, it is much clearer for someone who will read the code.\n```javascript\n//Instead of using 43200000 milliseconds (equivalent to 12 hours) we can do the following\nsetInterval(() => {\n  //Do something here\n}, toTime('12h').ms());\n\n//Instead of using 5400000 milliseconds (equivalent to 1.5 hour)\nsetTimeout(() => {\n  //Do something here\n}, toTime.fromHours(1.5).ms());\n```\n\n##### Allowed suffixes (all case-insensetive)\n\n* Year, Years, Y\n* Week, Weeks, W\n* Day, Days, D\n* Hour, Hours, H\n* Minute, Minutes, M\n* Second, Seconds, S\n* Millisecond, Milliseconds, MS\n\n\n#### Initializing using factory methods\nIt is also possible to create a TimeFrame instance by calling the static factory methods.\nThe result will be a TimeFrame object similar to the one that is created by invoking the function with a textual time period.\n```javascript\ntoTime.fromHours(4).addMinutes(30).hours(); //4.5\ntoTime.fromYears(4).addWeeks(4).days(); //1488\n```\n###### Available factory methods\n* fromMilliseconds\n* fromSeconds\n* fromMinutes\n* fromHours\n* fromDays\n* fromWeeks\n* fromYears\n\n\n#### Appenders methods\nIt is possible to add additional units to the TimeFrame object by invoking one of the appender methods on the returned instance:\n\n```javascript\ntoTime('0.5 hour').addMinutes(30).seconds(); //3600\ntoTime.fromHours(2).addMinutes(30).minutes(); //150\n```\n\n###### Available appenders:\n* addMilliseconds\n* addSeconds\n* addMinutes\n* addHours\n* addDays\n* addWeeks\n* addYears\n\n#### Getters methods\nThe getter methods are used to get the value of the TimeFrame object in a specific time unit.\n* milliseconds : Number\n* ms (alias to milliseconds)\n* minutes : Number\n* hours : Number\n* days : Number\n* weeks : Number\n* years : Number\n* humanize : String\n\n#### Converting the TimeFrame object to human readable format\nIt is also possible to use to-time in order to convert time units into human readable format.\nExample:\n```javascript\nconst frame = toTime.fromMilliseconds(500005050505005);\nframe.humanize(); //15855 Years, 2 Weeks, 6 Days, 11 Hours, 48 Minutes, 25 Seconds, 5 Milliseconds\n```\n\n## Contributing\n\n##### Running tests\n\n* Make sure to write tests, run new & existing tests using:\n  ```shell\n  npm run test\n  ```\n  \n* Check for source code & tests code styling by running eslint:\n  ```shell\n  npm run lint\n  ```\n\n* If tests are passing and eslint doesn't return any error -> Create pull request\n\n## License\nMIT\n","_attachments":{},"homepage":"https://github.com/hafuta/to-time#readme","bugs":{"url":"https://github.com/hafuta/to-time/issues"},"license":"MIT"}