{"_id":"to-time","_rev":"2892865","name":"to-time","description":"Utility for converting textual time periods to time units","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"hafuta","email":"matan@hafuta.com"}],"time":{"modified":"2022-11-28T08:50:50.000Z","created":"2016-07-10T00:08:46.817Z","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":{"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","size":41661,"noattachment":false,"key":"/to-time/-/to-time-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:15.145Z","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","size":40971,"noattachment":false,"key":"/to-time/-/to-time-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:15.018Z","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","size":40982,"noattachment":false,"key":"/to-time/-/to-time-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:13.916Z","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","size":40984,"noattachment":false,"key":"/to-time/-/to-time-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:12.818Z","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","size":40915,"noattachment":false,"key":"/to-time/-/to-time-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:11.686Z","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","size":40960,"noattachment":false,"key":"/to-time/-/to-time-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:10.554Z","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","size":40706,"noattachment":false,"key":"/to-time/-/to-time-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:09.437Z","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","size":40710,"noattachment":false,"key":"/to-time/-/to-time-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:07.246Z","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","size":40709,"noattachment":false,"key":"/to-time/-/to-time-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:06.184Z","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","size":40780,"noattachment":false,"key":"/to-time/-/to-time-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:04.900Z","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","size":6239,"noattachment":false,"key":"/to-time/-/to-time-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:03.820Z","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","size":6200,"noattachment":false,"key":"/to-time/-/to-time-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:02.710Z","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","size":5854,"noattachment":false,"key":"/to-time/-/to-time-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-time/download/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"},"_cnpmcore_publish_time":"2021-12-20T06:32:01.816Z","publish_time":1468109326817,"_cnpm_publish_time":1468109326817}},"readme":"# to-time\n[![Build Status](https://travis-ci.org/hafuta/to-time.svg?branch=master)](https://travis-ci.org/hafuta/to-time) [![npm version](https://badge.fury.io/js/to-time.svg)](https://badge.fury.io/js/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\nFirst install the package and save it to package.json using npm:\n```sh\nnpm install --save to-time\n```\n\nTo require in the browser:\n\nBoth files located in _lib_ directory already include the bignumber.js dependency and there is no need to include this module in the browser.\n```html\n<!-- access using window.toTime -->\n<script src=\"node_modules/to-time/lib/to-time.min.js\"></script>\n```\n\nTo require when using NodeJS:\n```node\nconst toTime = require('to-time');\n```\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 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## To Do\n- [ ]  Add Karma for testing in browser environment (Currently testing server side using Mocha)\n\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"}