{"_id":"pauseable","_rev":"26-485de37c481bfdc948ccf1fc0b0835ac","name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","dist-tags":{"latest":"0.3.2"},"versions":{"0.0.1":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.0.1","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","directories":{"lib":"./lib"},"engines":{"node":"*"},"devDependencies":{"expresso":"0.9.x"},"licenses":[{"type":"MIT","url":"http://github.com/fent/pauseable.js/raw/master/LICENSE"}],"_npmUser":{"name":"neat","email":"roly426@gmail.com"},"_id":"pauseable@0.0.1","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"7499d6f37c5991aba74b9d69a4cc35b3345f892e","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.0.1.tgz","integrity":"sha512-wTEXVakQ0ic/EWD+2yU07LVT7XRPXitfgRD5jotwHSmprQbNArT2CFFlqudM3bW1nR6bKTXyX75OcIiQB/WwYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY7Eb3apFPz/kCk52PSLcMcAqiYOvY469806V6CiNVkgIgbXjG8DiTL6ob0HRawNdCzUBLd7C2J2GSueW8GB/ConE="}]},"maintainers":[{"name":"neat","email":"roly426@gmail.com"}]},"0.1.0":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.1.0","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","directories":{"lib":"./lib"},"engines":{"node":"*"},"devDependencies":{"expresso":"0.9.x"},"licenses":[{"type":"MIT","url":"http://github.com/fent/pauseable.js/raw/master/LICENSE"}],"_npmUser":{"name":"neat","email":"roly426@gmail.com"},"_id":"pauseable@0.1.0","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"535de28f865d08642bccf0024363ce0dd8073aa8","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.1.0.tgz","integrity":"sha512-X4TgsH0cDEka2QFk2Z4v58ClF22j+sXN3CTu17CdSvycSQAhKPhgAahDoQOMMGhfd4Zy8C1y0L6T9KZmn/gvdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3yxEa4+AIcJbb2sV66yw0qKtQOWXgBozThMDkJcw9PAiBxE0qjYA26UnJWL4o6vcwn3ydhXxI++GZ5YY7VzAHNWg=="}]},"maintainers":[{"name":"neat","email":"roly426@gmail.com"}]},"0.1.2":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.1.2","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"mocha -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"x"},"licenses":[{"type":"MIT","url":"http://github.com/fent/pauseable.js/raw/master/LICENSE"}],"_id":"pauseable@0.1.2","dist":{"shasum":"3df2e7831d2bcc3004d540ddd71fb3a0f3deee27","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.1.2.tgz","integrity":"sha512-yxs/tgvLGoOqOAnvr8+DTq1iAXanYeRB5RZ27byqsj86pX7P7MkDuy6vPmvBxVpZzJkbF4moH88savf+DWzdiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtXTS8LP7pvJAxGyFJQ0eq6/JZvrmsbqiZAmThIh3S1AIgdPuxFGLuU0iqnFwCK5ajTeVMPNCrC1jqFzCrLGfKi+8="}]},"_npmVersion":"1.1.49","_npmUser":{"name":"neat","email":"roly426@gmail.com"},"maintainers":[{"name":"neat","email":"roly426@gmail.com"}]},"0.1.3":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.1.3","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"mocha -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"x"},"licenses":[{"type":"MIT","url":"http://github.com/fent/pauseable.js/raw/master/LICENSE"}],"gitHead":"59ddfedc6f2780f77cb99356b940ab312fa41983","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.1.3","_shasum":"eafb68bc5a3ab4fd800d198d17e9ec34484f542e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"dist":{"shasum":"eafb68bc5a3ab4fd800d198d17e9ec34484f542e","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.1.3.tgz","integrity":"sha512-zXNlfQPZlr2dTIkE1ld6nlwq3i2vL+Vapa9+UY3zbmCYTNHR5fuh6CNlMq76AiGqPetjhkp90Z4pHuNo5hNiDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgWEiDBdE4R9WiA5kVRFUs66ENsjwoEW7qlF0dPHMBlgIhAO0au8leDf4UsOKmmNDlQqQcEgYmjU3YCkQXOmzRsqZT"}]}},"0.1.4":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.1.4","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"mocha -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"x"},"licenses":[{"type":"MIT","url":"http://github.com/fent/pauseable.js/raw/master/LICENSE"}],"gitHead":"e6a27e1331919bd8a96414467d9f4f4482da449e","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.1.4","_shasum":"45692ae1ca129d3cafd263121cbfcd7fda6ce300","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"dist":{"shasum":"45692ae1ca129d3cafd263121cbfcd7fda6ce300","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.1.4.tgz","integrity":"sha512-sjv+eDjCwVefaFWDLypfrJh2lfecCpry+ugQSswcVeNU3WPfwViaRsFgocwN9UwiiRBP93DBcWBWgyzsU3j/eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5MLWhGurdrMrJGNbIM3ZYjAHbat0pkWLLspce8/ZBtAiEApb+5qHciiqc6iFJ+ewRb+iRMB4woTIeUA3vjsJ6O4QA="}]}},"0.1.5":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.1.5","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"mocha -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"x","sinon":"^1.12.2"},"licenses":[{"type":"MIT","url":"http://github.com/fent/pauseable.js/raw/master/LICENSE"}],"gitHead":"02d79dcd2842d246279077b4d82e4252474279b8","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.1.5","_shasum":"f320d99cb5bda6115dfcef8f98c23ac13342364b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"dist":{"shasum":"f320d99cb5bda6115dfcef8f98c23ac13342364b","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.1.5.tgz","integrity":"sha512-+gydjpH0fLvNCvl8u15EE4oLGI14mnHe68empdtxvENZLhKY7jQWvrI9HmMnRJXK8hRJY0T80xPWuO2G+qLjkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAty/kdKcuikeiJFk1uhQ+Uzv50RwD4AbxZFJ75jt13iAiEAqIBk/E11QH5BTnu8z3BLQbNzKPZfFNfdEE88nDsp+44="}]}},"0.1.6":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.1.6","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"mocha -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"x","sinon":"^1.12.2"},"licenses":[{"type":"MIT","url":"http://github.com/fent/pauseable.js/raw/master/LICENSE"}],"gitHead":"289bc7c124f85ce95fd9bbeab7c2b58072c3a632","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.1.6","_shasum":"e06a5be7388eb3fd8ef9adbcc99bb680019dc71e","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"dist":{"shasum":"e06a5be7388eb3fd8ef9adbcc99bb680019dc71e","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.1.6.tgz","integrity":"sha512-gfQ1lip2Sd1DM19CALFY30ryFrprVHEFqH0nYNh3lKj5c5W9CD0WYx/3gohcZMa/TUbXVMW0e0zPleBwV9j49A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCV1CxjmlyGg42mTYwGFi0hvWi7e1zUDFiXyrvzuRXzAIhAKUI5I/9i1iALFgUJ0Y8+zPeuvoaTjl9cNCtpmiazY0V"}]}},"0.1.7":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.1.7","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"*","mocha":"*","sinon":"^1.12.2"},"license":"MIT","gitHead":"7991558c3f610b89ee9f6fdb120b371d0efc976a","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.1.7","_shasum":"85ccd7790e49a13afe3b903b3616130bc0074e07","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"dist":{"shasum":"85ccd7790e49a13afe3b903b3616130bc0074e07","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.1.7.tgz","integrity":"sha512-LPy4es+JEHbrPPdgDpLfcI0qOTcfQVlvzoKaz2TDqJ2AYiErCbSETGCy/uZ1hD+MD3bGtlOZrvPZ4IaLvSEbBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6CY4zAkfolSacnanm+Bip0srdYtkEn2HD3hA5eox3RAiEAwrkVZJbq++d/ByRoupm6F/vK0BsoKNFlBV1OgLi2GKc="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pauseable-0.1.7.tgz_1480905757839_0.4078122992068529"}},"0.2.0":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.2.0","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"*","mocha":"*","sinon":"^1.12.2"},"engines":{"node":">=0.12"},"license":"MIT","gitHead":"1858de2470569dfb3c9a68c73fceec9516712cd5","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.2.0","_shasum":"e4e095a0d7f02a9246fb80949b80ce5ee4576dae","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"dist":{"shasum":"e4e095a0d7f02a9246fb80949b80ce5ee4576dae","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.2.0.tgz","integrity":"sha512-Y2y364TrOq3eKlk/9zdV/Iy8IWJ2R5IGzEHEjsRWZlqLwm2nRldGPNYppd0soMS4/NyS+VrDuMweIb+DUEPgwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBrvWkTe8s7EW/HnBNpeLGSPzKNBNB/ovzPgaUOJDP5AiEApWxbrBxh3wIvDj5UBhwm2r/GizaG+YuwRCZdUrzew2w="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pauseable-0.2.0.tgz_1488515510251_0.04461276740767062"}},"0.2.1":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.2.1","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","files":["lib"],"scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"*","mocha":"*","sinon":"^3.0.0"},"engines":{"node":">=0.12"},"license":"MIT","gitHead":"a031f179bd024b1786b6c0d89c8e14ecf6f7d01a","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"dist":{"integrity":"sha512-aMNzrpIwFk6P9Zp5Vile2y9reSmZHasBH1bJgt/6IQGx+eqBQDw9UzucrR8K4cTXzsEvL38c7pXSQIAXfKQRKA==","shasum":"1be8e33cb5152edce1c073110f973afdfe5e450f","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIv37S9VpT+ibhQjMMq43DHxwh0T3wZ+KK1d44PeL4fAiAvf9BifqAZW9S8+iNLO+MBRcgrFaBhgZns7/X44mA4UA=="}]},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pauseable-0.2.1.tgz_1502341730878_0.03547305427491665"}},"0.3.0":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.3.0","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","files":["lib"],"scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"^0.4.5","mocha":"^4.0.1","sinon":"^4.0.0"},"engines":{"node":">=4"},"license":"MIT","gitHead":"b9b30ad7ef3438806756683938a6715996fded7d","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.3.0","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"dist":{"integrity":"sha512-16Akek11CNIt1YZPk32ZyldOY2xZy0itkELv8oj+Jk6feLY6Ih+tItYjCxpuiILEuxJeA3tGkxSiTMSz4FO3CA==","shasum":"4b44d452068af5f90ebbf08445fe0501445abc5d","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW8pK7UQVP/ruruJfQHj0GXZHrRox2SuT+Iz6Y2m0KcQIgUSCfMVhuOcBaEybUClkZWrIPpliZ0QPPIsX4QNBaJ4I="}]},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pauseable-0.3.0.tgz_1509306532372_0.13273254712112248"}},"0.3.1":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.3.1","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"fent","url":"https://github.com/fent"},"main":"./lib/index.js","files":["lib"],"scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"^0.4.5","mocha":"^4.0.1","sinon":"^4.0.0"},"engines":{"node":">=4"},"license":"MIT","gitHead":"6d822b7863349c2a528cf24023d403738f40b492","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.3.1","_npmVersion":"5.6.0","_nodeVersion":"9.11.0","_npmUser":{"name":"fent","email":"fentbox@gmail.com"},"dist":{"integrity":"sha512-lejwSW7oD5AdqbYe61IpfhQ7j+IzszbNd2fttlJQ6tMAHKGI+HaIzLco9aM3Ql5l8dpIDoHJ0h0b2C8OHZ6y+A==","shasum":"83af5ea382d785bd15d494d1a9d5e184884bed01","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.3.1.tgz","fileCount":4,"unpackedSize":10466,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3/v71ERMhjeqkPUl+6u0p3iSsIlaL5kb9VGD08q8hCgIhAOyvvRCxTvngbmMIHi3IvP3uxxd2nBfMMS4+f6Ej5nWk"}]},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pauseable_0.3.1_1522987711457_0.2693119354577631"},"_hasShrinkwrap":false},"0.3.2":{"name":"pauseable","description":"Create event emitters, intervals, and timeouts that can be paused and resumed.","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"version":"0.3.2","homepage":"https://github.com/fent/pauseable.js","repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"author":{"name":"fent","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text-summary mocha -- test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"^6.2.0","nyc":"^14.1.1","sinon":"^7.2.3"},"engines":{"node":">=8"},"license":"MIT","gitHead":"eae7161708a6d62452dfc9b20de8b35cb4a0789c","bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"_id":"pauseable@0.3.2","_nodeVersion":"11.10.1","_npmVersion":"6.11.3","_npmUser":{"name":"fent","email":"fentbox@gmail.com"},"dist":{"integrity":"sha512-QduJkcfPqTUtJiOQoUWZkmmisBA6LoAeIgGeC3b7wfICtGdo89hC174eS91pKFOegIsrS5Tla2Mh9NEvObLd0Q==","shasum":"43b8d9e39b6af600e3374429854dc6eb49d6f0f9","tarball":"https://registry.npmjs.org/pauseable/-/pauseable-0.3.2.tgz","fileCount":4,"unpackedSize":10292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiuZ8CRA9TVsSAnZWagAAKzsP/iur8J//YM7FSQEa/jG4\n7De7st6UxycfOyakjV/N0Zm6LCJz9iVIg4VPyrk3WubnA207z4Ba5s23Pu87\nVQn/ePLnxntF4XUFqH3poICFEfi7R5RHJe3LrHzYJ3V4aRHBfTtvPLxQN91B\ntzVNeMxkNvzio7VgNieBfPDcgUAY7/H8mY1uLkDPtekeqJAB7LyH8UfK5sBa\n7LU6eiRMez38UWXQFzYuaA7imF2x0ouX/d17g5vKyAfG+3AcFgtzdqnu6HHn\n1XJBnybrnKRv6qWautLMYee1cG5aPXHyI8pPLMDWBoaPewaYJmpD8t4WAZ5H\nJopli3+tj8Xc3lZsarrkzyLJBnHr+p2+fOCueozGkARPjMg7aJpdgaiTCeF4\nc2XUmxw9i6HQpGWBtJ8SM2SWBwa+pNOlXEWpAuIDLktTQic4McT9BjwAiITp\n/5MN7PCbE8wnavJ7NHjEjSutoDNtbNeT3GP7i9oJigcD7aMJmouLX4ltIFlt\n1yqsNqZhgtKuPe18xQYp1LrHhc3XUgn8zZ+IUxQHNYWSRlJwprWO6XjuTrqN\nQA0VxRP7rNiGyxDCdvqQZdLhqItgS4aW8DKNR4ecrVBKySqk1DnKP3sOYErN\nHbHop4y4iSH0LZf/duTmvr9aMGs01Fa9sn3RHNmeYKQpZogijWg358vESa6a\ncaOW\r\n=VR3J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEoKpUC+gWrqZoUy8e1u59TuRKZNlOKIlLoTZQSf+T8AiB65yOFFNXZ6L2dD1OaJuROWfZ7mXBuJNVuQ6YUtKm50A=="}]},"maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pauseable_0.3.2_1569384058415_0.7200805279858726"},"_hasShrinkwrap":false}},"readme":"# pauseable.js\n\nPauseable allows you to pause event emitters, timeouts, and intervals. It can group multiple of these pauseable objects and pause entire groups.\n\n[![Dependency Status](https://david-dm.org/fent/pauseable.js.svg)](https://david-dm.org/fent/pauseable.js)\n[![codecov](https://codecov.io/gh/fent/pauseable.js/branch/master/graph/badge.svg)](https://codecov.io/gh/fent/pauseable.js)\n\n# Usage\n\n## Using pauseable with EventEmitter\n\n```js\nconst pauseable = require('pauseable');\nconst EventEmitter = require('events').EventEmitter;\n\nlet ee = new EventEmitter();\n\nee.on('foo', () => { ... });\n\n// ...later\npauseable.pause(ee);\n\n// this event will not be immediately fired\n// instead, it will be buffered\nee.emit('foo', 'hellow');\n\n// ...much later\n// the 'foo' event will be fired at this point\npauseable.resume(ee);\n```\n\n## Comes with pauseable setTimeout and setInterval too\n\n```js\nlet timeout = pauseable.setTimeout(() => {\n  // this will take 8 seconds total to execute\n  // not 5\n}, 5000);\n\n// pause timeout after 2 secs\nsetTimeout(() => {\n  timeout.pause();\n  timeout.isPaused(); // true\n  \n  // resume after 3\n  setTimeout(() => {\n    timeout.resume();\n  }, 3000);\n}, 2000);\n```\n\nThe `function` and `ms` arguments are interchangeable. Use whichever way you prefer!\n\n```js\nlet interval = pauseable.setInterval(5000, () => {\n  // this is called after 5 seconds\n  // then paused for 2 seconds\n  interval.pause(2000);\n});\n```\n\n## Grouping\n\n```js\n// create a group\nlet g = pauseable.createGroup();\n\n// make and add emitters to group\nlet ee1 = g.add(new EventEmitter());\nlet ee2 = g.add(new EventEmitter());\n\nee1.on('forth', () => {\n  // pause entire group (that means ee1 and ee2) for 500 ms\n  // timeout is out of the group by the time this executes\n  g.pause(500);\n  console.log('forth');\n  ee2.emit('back');\n});\n\nee2.on('back', () => {\n  console.log('back');\n  ee1.emit('forth');\n});\n\nlet timeout = g.setTimeout(() => {\n  ee2.emit('back', 'poop');\n}, 1000);\n```\n\n# Motive\n\nJavascript is event based by nature. When developing large scale applications that are completely event based, it becomes complicated to pause the streaming of events, because Javascript never \"sleeps\". It becomes even more complicated to pause timeouts and intervals, having to keep track of when they were paused so they can be resumed with the correct time again.\n\nThat's where this module comes in. Pauseable helps manage pausing and resuming your application or part of it. It works with `EventEmitter`, with `setInterval` and `setTimeout`.\n\n\n# API\n\n## Events\n### pauseable.pause(ee, [ms])\nPauses an instance of EventEmitter. All events get buffered and emitted once the emitter is resumed. Currently only works with EventEmitters. Optional `ms` will pause only for that long.\n\n### pauseable.resume(ee, [ms])\nResumes the emitter. Events can be emitted again. Optional `ms` will resume only for that long.\n\n\n## Timers\n### pauseable.setTimeout(fn, ms) and pauseable.setInterval(fn, ms)\nCreates a pauseable timeout or interval. `fn` and `ms` are interchangeabale. Returns an instance of timer.\n\n### timer.pause([ms])\nPauses timer. Optional `ms` will pause the timer only for that amount.\n\n### timer.resume([ms])\nResumes timer. Optional `ms` will resume the timer only for that amount.\n\n### timer.next()\nReturns the number of ms left until the `fn` function in the constructor gets called again.\n\n### timer.clear()\nClears timeout. Can no longer be resumed.\n\n### timer.isPaused()\nReturns `true` if timer is currently paused.\n\n\n## Groups\n### pauseable.createGroup()\nCreates a `group` where emitters and timers can be easily managed.\n\n### group.add()\nAdd an emitter or a timer to the group. Returns added emitter/timer.\n\n### group.setTimeout(fn, ms)\n### group.setInterval(fn, ms)\nShortcut to create an instance of a timer and add it to the group.\n\n### group.pause([ms])\nPauses all emitters and timers in the group.\n\n### group.resume([ms])\nResumes all emitters and timers in the group.\n\n### group.clear()\nClears timers in the group.\n\n### group.isPaused()\nReturns `true` is group is paused.\n\n### group.isDone()\nReturns `true` if all timers currently in the group are timeouts and their original function has been called or all timers have been cleared.\n\n### group.timers()\nContains both emitters and timers. For if you want to micro manage more.\n\n\n# Install\n\n    npm install pauseable\n\n\n# Tests\nTests are written with [mocha](https://mochajs.org)\n\n```bash\nnpm test\n```\n","maintainers":[{"name":"fent","email":"roly426@gmail.com"}],"time":{"modified":"2022-06-23T15:19:16.244Z","created":"2011-11-10T04:56:12.489Z","0.0.1":"2011-11-10T04:56:17.679Z","0.1.0":"2011-11-10T20:52:42.495Z","0.1.2":"2012-08-19T06:01:57.695Z","0.1.3":"2015-01-18T06:35:17.286Z","0.1.4":"2015-01-22T02:51:25.472Z","0.1.5":"2015-01-23T18:07:37.885Z","0.1.6":"2015-03-26T12:22:34.711Z","0.1.7":"2016-12-05T02:42:39.839Z","0.2.0":"2017-03-03T04:31:52.220Z","0.2.1":"2017-08-10T05:08:51.785Z","0.3.0":"2017-10-29T19:48:53.260Z","0.3.1":"2018-04-06T04:08:31.564Z","0.3.2":"2019-09-25T04:00:58.575Z"},"author":{"name":"fent","url":"https://github.com/fent"},"repository":{"type":"git","url":"git://github.com/fent/pauseable.js.git"},"homepage":"https://github.com/fent/pauseable.js","keywords":["event","emitter","timer","interval","timeout","pause","resume"],"bugs":{"url":"https://github.com/fent/pauseable.js/issues"},"readmeFilename":"README.md","license":"MIT","users":{"pldin601":true}}