{"_id":"jitter-time","_rev":"128-076723f4fd97e32311b568c8a43c3301","name":"jitter-time","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"jitter-time","version":"0.1.0","keywords":[],"author":{"url":"github.com/vend","name":"James Bunt","email":"james@vendhq.com"},"license":"MIT","_id":"jitter-time@0.1.0","maintainers":[{"name":"unkillbob","email":"james.bunt@gmail.com"}],"homepage":"https://github.com/vend/jitter-time.js#readme","bugs":{"url":"https://github.com/vend/jitter-time.js/issues"},"dist":{"shasum":"9642568e31be82fe3e7d25b72b14f08b8d443825","tarball":"https://registry.npmjs.org/jitter-time/-/jitter-time-0.1.0.tgz","integrity":"sha512-6/d0th5C2T9zLkQ1z1yZ4hPFg2Oe2bEm119bCgrD4y6vm8s1RQULSBLT89hQ3kpD27171g1jbIYLrKo91mhyTQ==","signatures":[{"sig":"MEQCIBrNLqq3LFin8kYDiEWgQ2NlBcSrNBohJ0jA7PFxyAKWAiBGDP5iwiOCPQY0c5bw+2wmtdcjR06WuPEgyvO/BGh1Hg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"9642568e31be82fe3e7d25b72b14f08b8d443825","gitHead":"d21bfb32200047023376f0c44e4c7f048e61f58b","scripts":{"test":"standard && mocha --compilers js:babel/register","build":"babel src -d dist","watch":"npm run build -- -w & npm run post-build","post-build":"onchange 'dist/**.js' 'test/**.js' -- npm test","prepublish":"npm run build && npm test"},"_npmUser":{"name":"unkillbob","email":"james.bunt@gmail.com"},"standard":{"ignore":["coverage/**","dist/**","node_modules/**"]},"repository":{"url":"git+https://github.com/vend/jitter-time.js.git","type":"git"},"_npmVersion":"2.9.1","description":"[![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![js-standard-style][standard-style-image]][standard-style-url]","directories":{},"_nodeVersion":"0.12.0","dependencies":{},"devDependencies":{"babel":"*","mocha":"*","onchange":"1.x","standard":"*"}},"0.1.1":{"name":"jitter-time","version":"0.1.1","keywords":[],"author":{"url":"github.com/vend","name":"James Bunt","email":"james@vendhq.com"},"license":"MIT","_id":"jitter-time@0.1.1","maintainers":[{"name":"unkillbob","email":"james.bunt@gmail.com"}],"homepage":"https://github.com/vend/jitter-time.js#readme","bugs":{"url":"https://github.com/vend/jitter-time.js/issues"},"dist":{"shasum":"6f8be62f8624acdce5d6a42c8fdb280f79538ed6","tarball":"https://registry.npmjs.org/jitter-time/-/jitter-time-0.1.1.tgz","integrity":"sha512-YyLS0QYc7XbxbDoxMax5Jz6jD46cFdjmWT6/jUP4Cu3BJ97V8toSUbVi2B/+L7GE5J4VGiMYT4Agz5GNak8XVw==","signatures":[{"sig":"MEYCIQDt59kvWURNggDugtn+p59YXh0S29meS7MXyO0gfz3YXgIhALN1TeT+inQnStTSFE31lpin1cM6W7YYQAxt8SkGbX0V","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"6f8be62f8624acdce5d6a42c8fdb280f79538ed6","gitHead":"ab582056be55d686761bfad3a3c365949259de99","scripts":{"test":"standard && mocha --compilers js:babel/register","build":"babel src -d dist","watch":"npm run build -- -w & npm run post-build","post-build":"onchange 'dist/**.js' 'test/**.js' -- npm test","prepublish":"npm run build && npm test"},"_npmUser":{"name":"unkillbob","email":"james.bunt@gmail.com"},"standard":{"ignore":["coverage/**","dist/**","node_modules/**"]},"repository":{"url":"git+https://github.com/vend/jitter-time.js.git","type":"git"},"_npmVersion":"2.9.1","description":"[![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![js-standard-style][standard-style-image]][standard-style-url]","directories":{},"_nodeVersion":"0.12.0","dependencies":{},"devDependencies":{"babel":"*","mocha":"*","onchange":"1.x","standard":"*"}},"0.1.2":{"name":"jitter-time","version":"0.1.2","keywords":["time","jitter","random","poll"],"author":{"url":"github.com/vend","name":"James Bunt","email":"james@vendhq.com"},"license":"MIT","_id":"jitter-time@0.1.2","maintainers":[{"name":"unkillbob","email":"james.bunt@gmail.com"}],"homepage":"https://github.com/vend/jitter-time.js#readme","bugs":{"url":"https://github.com/vend/jitter-time.js/issues"},"dist":{"shasum":"df0b043862985a5357b04d8993b2477f2652e42b","tarball":"https://registry.npmjs.org/jitter-time/-/jitter-time-0.1.2.tgz","integrity":"sha512-/Fza6vxbgsfE6r1pm2cgRcSNlAwjqXliPsG+3agqcSO9hcPIzTQDMaVyDK7ddZsPAwTsU/4LwR378fhVDXG5MA==","signatures":[{"sig":"MEUCIHiGwJ8R6Hl1ZrtIEsG2R8SGMoQdfQtMmmdWp0FnRfRZAiEA5MQIWEiIL5D3DVvF6ajLnKC+AQqboNcgqstt6en9ulk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"df0b043862985a5357b04d8993b2477f2652e42b","gitHead":"fba0190d17d06a3274e9b30a223c4fdceadbb624","scripts":{"test":"standard && mocha --compilers js:babel/register","build":"babel src -d dist","watch":"npm run build -- -w & npm run post-build","post-build":"onchange 'dist/**.js' 'test/**.js' -- npm test","prepublish":"npm run build && npm test"},"_npmUser":{"name":"unkillbob","email":"james.bunt@gmail.com"},"standard":{"ignore":["coverage/**","dist/**","node_modules/**"]},"repository":{"url":"git+https://github.com/vend/jitter-time.js.git","type":"git"},"_npmVersion":"2.9.1","description":"[![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![js-standard-style][standard-style-image]][standard-style-url]","directories":{},"_nodeVersion":"0.12.0","dependencies":{},"devDependencies":{"babel":"*","mocha":"*","onchange":"1.x","standard":"*"}},"0.1.3":{"name":"jitter-time","version":"0.1.3","keywords":["time","jitter","random","poll"],"author":{"url":"github.com/vend","name":"James Bunt","email":"james@vendhq.com"},"license":"MIT","_id":"jitter-time@0.1.3","maintainers":[{"name":"unkillbob","email":"james.bunt@gmail.com"}],"homepage":"https://github.com/vend/jitter-time.js#readme","bugs":{"url":"https://github.com/vend/jitter-time.js/issues"},"dist":{"shasum":"467f4f0a53dc50c6cfdfface78314615405b781a","tarball":"https://registry.npmjs.org/jitter-time/-/jitter-time-0.1.3.tgz","integrity":"sha512-cJ5lT/hzlBZlxUWhn8eZ0EZr8Aj76rzmbnLqtQQcWwOOyUxO/Jj/hbyj7vyzbb41tF2eCSCiSWC81B5JNMG39A==","signatures":[{"sig":"MEQCIASuIF+XxByZkie/eRdqQXa+Z4bI51Z5TrQXj3xeEMPAAiBogU/OZCrUwrOqsLkK6b0aVySwAO4/dMLo1CsvKS6MdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"467f4f0a53dc50c6cfdfface78314615405b781a","gitHead":"6acc795e8e1edc012f09e075b0f91515143804d0","scripts":{"test":"standard && mocha --compilers js:babel/register","build":"babel src -d dist","watch":"npm run build -- -w & npm run post-build","post-build":"onchange 'dist/**.js' 'test/**.js' -- npm test","prepublish":"npm run build && npm test"},"_npmUser":{"name":"unkillbob","email":"james.bunt@gmail.com"},"standard":{"ignore":["coverage/**","dist/**","node_modules/**"]},"repository":{"url":"git+https://github.com/vend/jitter-time.js.git","type":"git"},"_npmVersion":"2.9.1","description":"Jittery time generation","directories":{},"_nodeVersion":"0.12.0","dependencies":{},"devDependencies":{"babel":"*","mocha":"*","onchange":"1.x","standard":"*"}},"1.0.0":{"name":"jitter-time","version":"1.0.0","keywords":["time","jitter","random","poll"],"author":{"url":"github.com/vend","name":"James Bunt","email":"james@vendhq.com"},"license":"MIT","_id":"jitter-time@1.0.0","maintainers":[{"name":"unkillbob","email":"james.bunt@gmail.com"}],"homepage":"https://github.com/vend/jitter-time.js#readme","bugs":{"url":"https://github.com/vend/jitter-time.js/issues"},"dist":{"shasum":"4e3af65e7415dc5b9abdcff9074047105fe31348","tarball":"https://registry.npmjs.org/jitter-time/-/jitter-time-1.0.0.tgz","integrity":"sha512-XNl0Q4M/Eyxyb+uRREKCQSYXl7IYVA/746hWzxj2lwZHd65AjBD1GYsunbqm0b3F5ZSGNjnqh57w1XdMx3etHg==","signatures":[{"sig":"MEQCIHSKjIinifWbkEXW84S0x5leVu0xNv0mQ1ktNKqB6Be0AiATPHzDgK4zmbFABYfbPYGUXdMFK7Jr3NfwXmE5XEgU2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"4e3af65e7415dc5b9abdcff9074047105fe31348","gitHead":"fcea1d8db733f3019df9cea5abc62e25e29499e5","scripts":{"test":"standard && mocha --compilers js:babel/register","build":"babel src -d dist","watch":"npm run build -- -w & npm run post-build","post-build":"onchange 'dist/**.js' 'test/**.js' -- npm test","prepublish":"npm run build && npm test"},"_npmUser":{"name":"unkillbob","email":"james.bunt@gmail.com"},"standard":{"ignore":["coverage/**","dist/**","node_modules/**"]},"repository":{"url":"git+https://github.com/vend/jitter-time.js.git","type":"git"},"_npmVersion":"2.9.1","description":"Jittery time generation","directories":{},"_nodeVersion":"0.12.0","dependencies":{},"devDependencies":{"babel":"*","mocha":"*","onchange":"1.x","standard":"*"}},"1.1.0":{"name":"jitter-time","version":"1.1.0","keywords":["time","jitter","random","poll"],"author":{"url":"github.com/vend","name":"James Bunt","email":"james@vendhq.com"},"license":"MIT","_id":"jitter-time@1.1.0","maintainers":[{"name":"aarr0n","email":"aarron.painter@gmail.com"},{"name":"beingnancy","email":"fanglanchans@gmail.com"},{"name":"bencoullie","email":"bencoullie@gmail.com"},{"name":"brittanywalker","email":"brittany@vendhq.com"},{"name":"celine.may","email":"celine.rufener@vendhq.com"},{"name":"courtneyvend","email":"courtney.wright@vendhq.com"},{"name":"edsrzf","email":"edsrzf@gmail.com"},{"name":"ezerw_vend","email":"eze.rodriguez@vendhq.com"},{"name":"farzanar","email":"farzana.rassul@vendhq.com"},{"name":"ivyfu","email":"ivy.fu@vendhq.com"},{"name":"jackharrisonsherlock","email":"jackharrisonsherlock@me.com"},{"name":"jacoblapworth","email":"jacob@lapworth.nz"},{"name":"jonoradich","email":"jono@vendhq.com"},{"name":"kittyness","email":"kate.nesmyelova@vendhq.com"},{"name":"lachlanroyneeley","email":"loki@vendhq.com"},{"name":"laher","email":"am@laher.net.nz"},{"name":"logical_hash","email":"campbellrehu@me.com"},{"name":"lucilletachet","email":"lucille.tachet@gmail.com"},{"name":"maxg_vend","email":"max.grabenhorst@vendhq.com"},{"name":"mazin09","email":"mazin@vendhq.com"},{"name":"mikethehud","email":"mike@eben.co.nz"},{"name":"mungrel","email":"nick.pollett@vendhq.com"},{"name":"n8atvend","email":"nathan.cairns@vendhq.com"},{"name":"nancylu","email":"nancy.lu@vendhq.com"},{"name":"newbury","email":"joe.newby@vendhq.com"},{"name":"nickolockhart","email":"nicholas.o.lockhart@gmail.com"},{"name":"nzben","email":"ben@gracewood.nz"},{"name":"nzleoliang","email":"leo.liang@vendhq.com"},{"name":"piotrzurek","email":"p.zurek@gmail.com"},{"name":"quantumchaos451","email":"scottn@quantumchaos451.co.nz"},{"name":"rberriman","email":"rebekah.berriman@vendhq.com"},{"name":"renanrt","email":"renan@vendhq.com"},{"name":"richard.lopes","email":"richard.lopes@gmail.com"},{"name":"sepehrmm","email":"sepehr66@gmail.com"},{"name":"simvan-vend","email":"simon.vanlankveld@vendhq.com"},{"name":"snikch","email":"mal@mal.co.nz"},{"name":"ssrpsathira","email":"ssrpsathira@gmail.com"},{"name":"staugaard","email":"mick@staugaard.com"},{"name":"stephen.boswell","email":"stephen.boswell@vendhq.com"},{"name":"tenitski","email":"alexei@te.nz"},{"name":"trevorpirie","email":"trevor.pirie@vendhq.com"},{"name":"unkillbob","email":"james.bunt@gmail.com"},{"name":"vendzedkoz","email":"koz@vendhq.com"},{"name":"wal8800","email":"john.law@vendhq.com"},{"name":"yihaoye","email":"yihaoyemail@gmail.com"}],"dist":{"shasum":"1e008c79cd9b3c9e87b4e6aff2fee3f5a76908a7","tarball":"https://registry.npmjs.org/jitter-time/-/jitter-time-1.1.0.tgz","fileCount":16,"integrity":"sha512-jpIje0D3+AvrSDOZ8RjfLhPdis8YmelvtbUNpjch1s2G0Dppu6KudGwsUgWBanLLmV7Y5+TGGxxGVwYZOCG5bg==","signatures":[{"sig":"MEUCIQDUzPl5iphBRVpGH7Z5dXj7sf3ZgypQJF1Brwe2p+qAMwIgJVlEURzxcS459oQLeRIr0lX9OUVV1bafhiolSxrUCds=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2weuCRA9TVsSAnZWagAAEfkP/0qk2r+qAYQaGUKnZ9oB\n0smUTKLf/Uecdz8Lc5GJw30HVTsg4Cvn8lsjdsQJJeeQ2FKHsJxPXzLSHYAW\n61BmIqMsgOe5FyoS96l3aKG21yuB0DbRdl2Xzjj/p+J3s28JqUGYT+S+HXB5\nrwjB8zrIMfaezpVEmTVp1GVhSjPDie16aP9o3M5y8fgI1j31Kx/vXxTUn55H\nNkPTxOzr/Nf99xRAzt2e6E1YvFjbW/RM78h6RHYPoPAq8J8ibT1CecWctapc\nTi998VNW9JCRT60cJS1wFbA13m9TGyiN7duopV/NQLSYDYaehHA2aYD7e1CP\nnT8AaJmWMmcQV/XeugR8JxecpmPURPxX5hUrx7r92jFJDRc1hMnOV/McsfjN\nsIYcEx3Aw8qcptJhfFk3/VuhEUEK2gViZU4a4etTx9yxp1VV/VLqOtrPTEOd\nT/Au60vzO4UBV3YRlCEJhUJ6xCMtpFiFIelPwT4/fQAmdOpc2/tvJPYPjLHn\n7ad8YJ/PEO8IDIhCVitXP7KrlZzWerBArTIHWyyHXPmZaYl6mn9qbUnIjPA+\nrN7nctSXrRUQx2I1ClaKd4N92wmH43Pal+OlGvMzvhNEIb587x/YrPuoZCpt\nFx0NRWEhP9cPTPJX+i3l8JhCIpBAMVYwYUJpkC/hMFz+1P20ZkPxjZrWPwYY\nIk86\r\n=mLcO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./index.d.ts","scripts":{"test":"standard && mocha --require @babel/register","build":"babel src -d dist","watch":"npm run build -- -w & npm run post-build","post-build":"onchange 'dist/**.js' 'test/**.js' -- npm test","prepublish":"npm run build && npm test"},"_npmUser":{"name":"edsrzf","email":"edsrzf@gmail.com"},"standard":{"ignore":["coverage/**","dist/**","node_modules/**"]},"repository":{"url":"https://github.com/vend/jitter-time.js.git","type":"git"},"description":"Jittery time generation","directories":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) Vend Ltd. (github.com/vend)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^5.2.0","onchange":"1.x","standard":"^12.0.1","@babel/cli":"^7.1.5","@babel/core":"^7.1.6","@babel/register":"^7.0.0","@babel/preset-env":"^7.1.6"},"_npmOperationalInternal":{"tmp":"tmp/jitter-time_1.1.0_1590542291179_0.18445600144794239","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-05-21T07:11:03.488Z","modified":"2026-02-12T04:10:56.020Z","0.1.0":"2015-05-21T07:11:03.488Z","0.1.1":"2015-05-21T07:19:48.510Z","0.1.2":"2015-05-21T07:30:37.140Z","0.1.3":"2015-05-21T07:43:16.995Z","1.0.0":"2015-05-21T08:00:30.147Z","1.1.0":"2020-05-27T01:18:11.300Z"},"author":{"url":"github.com/vend","name":"James Bunt","email":"james@vendhq.com"},"license":"MIT","keywords":["time","jitter","random","poll"],"repository":{"url":"https://github.com/vend/jitter-time.js.git","type":"git"},"description":"Jittery time generation","maintainers":[{"email":"aarron.painter@gmail.com","name":"aarr0n"},{"email":"stephen.john.boswell@gmail.com","name":"stephen.boswell"},{"email":"leo.liang@vendhq.com","name":"nzleoliang"},{"email":"nancy.lu@vendhq.com","name":"nancylu"},{"email":"simon.vanlankveld@vendhq.com","name":"simvan-vend"},{"email":"scottn@quantumchaos451.co.nz","name":"quantumchaos451"},{"email":"renan@vendhq.com","name":"renanrt"},{"email":"rebekah.berriman@vendhq.com","name":"rberriman"},{"email":"sepehr66@gmail.com","name":"sepehrmm"},{"email":"thomas.lebas@vendhq.com","name":"thomaslebas"},{"email":"ivana.garcia@vendhq.com","name":"ivanagarcia"},{"email":"valentinas.bakaitis@lightspeedhq.com","name":"valentinas.bakaitis"},{"email":"jared.patterson@lightspeedhq.com","name":"jared.patterson"},{"email":"james.bunt@gmail.com","name":"unkillbob"}],"readme":"# Jitter Time!\n\n[![travis][travis-image]][travis-url]\n[![npm][npm-image]][npm-url]\n[![js-standard-style][standard-style-image]][standard-style-url]\n\n[travis-image]: https://img.shields.io/travis/vend/jitter-time.js.svg?style=flat\n[travis-url]: https://travis-ci.org/vend/jitter-time.js\n[npm-image]: https://img.shields.io/npm/v/jitter-time.svg?style=flat\n[npm-url]: https://npmjs.org/package/jitter-time\n[standard-style-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat\n[standard-style-url]: https://github.com/feross/standard\n\n![jitter time](http://media.giphy.com/media/gpGrAKmOsiD3W/giphy.gif)\n\n> Generates random time periods (in milliseconds) between a max and min around the given minutes value. For\n> example this can be used to ensure 5 minute poll requests across multiple clients don't all happen at once.\n\n## Install\n\n```\n$ npm install --save jitter-time\n```\n\n## Usage\n\n```js\nvar jitterTime = require('jitter-time')\n\nvar POLL_INTERVAL = jitterTime(5, 0.2)\n//=> 290110 (Random number between 240000 and 360000)\n\nsetInterval(syncDataWithServer, POLL_INTERVAL)\n```\n\n## API\n\n### jitterTime([minutes], [jitter])\n\n#### minutes\n\n- Type: `number`\n- Default: `1`\n\nNumber of minutes to jitter around.\n\n#### jitter\n\n- Type: `number`\n- Default: `0.1`\n\nPercentage of jitter (for setting max and min). E.g. 1 = +/-100%, 0.1 = +/-10%, etc.\n\n## Contributing\n\n### Build\n\n```js\nnpm run build\n```\n\n### Test\n\n```js\nnpm test\n```\n\n### Watch\n\nTo watch for changes, build them and run the tests:\n\n```js\nnpm run watch\n```\n\n## License\n\nMIT © [Vend Ltd.](https://github.com/vend)\n","readmeFilename":"README.md"}