{"_id":"@anthonyalbertyn/interval-emitter","_rev":"2-fdc731fcf5e1a2b93d389424c97dd298","name":"@anthonyalbertyn/interval-emitter","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@anthonyalbertyn/interval-emitter","version":"0.1.0","description":"Emits a specified event at a specified interval for Node applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","example1":"node ./examples/example1.js","example2":"node ./examples/example2.js"},"repository":{"type":"git","url":"git+https://github.com/anthonyalbertyn/interval-emitter.git"},"author":{"name":"Anthony Albertyn"},"license":"MIT","bugs":{"url":"https://github.com/anthonyalbertyn/interval-emitter/issues"},"homepage":"https://github.com/anthonyalbertyn/interval-emitter#readme","engines":{"node":">=14"},"gitHead":"f62a45dc02453c2962e1ba3fed248c56b512803d","_id":"@anthonyalbertyn/interval-emitter@0.1.0","_nodeVersion":"14.15.2","_npmVersion":"8.1.4","dist":{"integrity":"sha512-LMyeUi54NcEYHGvG8iCJVZWcgTmXWtyQiqGv19A3rNx6nU6XBzxrWK4DmHq/YZvyHbebt40ZKzVLQEeEZX4Unw==","shasum":"f6d6da3ce6dc43f0488e192457c631483e27821b","tarball":"https://registry.npmjs.org/@anthonyalbertyn/interval-emitter/-/interval-emitter-0.1.0.tgz","fileCount":9,"unpackedSize":6558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9ezLCRA9TVsSAnZWagAAnUAP/RqbjNYBLx39+gQh8T+c\nZII+56eu3hZFyGqmzjrth4tnqsCXQREZRM+BlUN6pY7I7azOqwzCO9wyjqmR\npVNU4NKjD7/fBsf9RqbpHr8LFprTtbNR/do20q5QCpeNtVBF87dGfB7ej2pe\nLW/4LVMXRNYHqiXWcNOYzghiI7sVVt34cGG0DVLPl7uIkHSoE+JFcyCrf/WS\nuCYdnJqfqWICpCNeKio+HtYdVUXOA8O90CsUF6owxjjUgrEfNR0mikSPICOx\nIFZxKlffqyIdb0vDCnXOCQXK6iTGQ13eHP+qFOocLgi0NRf4yQXHrb/p/5yM\ngYS6WvLq/WrjHMFRLdUcFDIbJ5YahP5Nur4ChZW2rPS5f2RKAXFQzcpRarJW\n2xhDFdfPPbcE/iTAC83RLBKdGCbNXfXngoprEooLfHrD8b9OvV3punDqMTHR\njAnWKq8/Q/380Ln2IY4PeoyPh/+bcJTe37aNN1EvjE4OEJBG3ovfmaIFosrg\nDPTzq6cBjBLrukT1tSfHeL/eOukZWhcZ/h8kQSiT24ecZ8yRgInh3CwC5gCK\nHutP45HrQi0XJYxSpcL0K+tEsNnzTzVGqmjyVzLCpkYRQ4/7kugDzm3J/CC8\n2eGRZsGCupoeL6uIkPTXeBWwSUlXAzlysfFpbr5//4LGIWphadHoU9HeqpyK\noKNI\r\n=lWuC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+z3titaWuA5TXBKLbO0QLRKPbEdqRWjwgHUKK+601jAiEAyd6BqLra8Fp69gFGKAOkCTxAcfyqIOKFr4Ucz3y7Tsg="}]},"_npmUser":{"name":"anthonyalbertyn","email":"anthonyalbertyn@gmail.com"},"directories":{},"maintainers":[{"name":"anthonyalbertyn","email":"anthonyalbertyn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/interval-emitter_0.1.0_1643506890996_0.3542919953347454"},"_hasShrinkwrap":false},"0.1.2":{"name":"@anthonyalbertyn/interval-emitter","version":"0.1.2","description":"Emits a specified event at a specified interval for Node applications","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","example1":"node ./examples/example1.js","example2":"node ./examples/example2.js"},"repository":{"type":"git","url":"git+https://github.com/anthonyalbertyn/interval-emitter.git"},"author":{"name":"Anthony Albertyn"},"license":"MIT","bugs":{"url":"https://github.com/anthonyalbertyn/interval-emitter/issues"},"homepage":"https://github.com/anthonyalbertyn/interval-emitter#readme","engines":{"node":">=14"},"gitHead":"9e6ac0aa1a95ab6e6c7181852c6958e7ee71231c","_id":"@anthonyalbertyn/interval-emitter@0.1.2","_nodeVersion":"14.15.2","_npmVersion":"8.1.4","dist":{"integrity":"sha512-/UgODp9IPHdWfjWUSjPGRpF2HHEnzxz5MXqcqi+sR7EXtxqImzAIfPycvpNEHvPF1trt6MZph92PpdyHZnPy3w==","shasum":"efaa2440a34d4d06db840c7336e32f7fc76d7b98","tarball":"https://registry.npmjs.org/@anthonyalbertyn/interval-emitter/-/interval-emitter-0.1.2.tgz","fileCount":9,"unpackedSize":6661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9fr+CRA9TVsSAnZWagAAzm0P/3KTExqtu7C7du2tVImO\nUP2XH5yXn1MlfjncDLRsA1UJt3xslkxcUL/cLtO5Q5GQyMPVOa1NDgQ1xcDH\nzeVBglJMPRMGsSdY8msYayfKdylENit4FXTYV8v0nl0DcIXMpUQEXLMTWKDx\nUk9bQ+n+xqoTIlwCZrQLfjEaacS5AkPR+mmXJukEOfDUhDL8bWN7obqemqVM\nyIRcbhum1rUWjw1n8Hl+0MAuPpFmspRsnWc4oLrGsB0ELgcGxF1qHZuFCl9A\n/naaxp1rOzUuviM9OCIzN39RSUKxzql9WfHRiU0u9PqLVDnJ1FO66QG3HbjT\njt77kh94oHY9HVpTfh9imC3FfTWHq/T2lpve57DsgzUEMrCz806PkEDEy1io\n5HYKIwuY9agrTtGfTOYMkE8cHJca4SUPFnphzE0VU8hUQFlgpw9frXrJp2gR\n5VdeWr4clmtiAiBSi/T6MA73FUVBtA+Khedi2a7GwXLing+0MRKV8EljYw8p\n933YRjJggic/VEwACMwzKq4pc9RwCIej/0CnohZI0g89JkxOO9zwX4+uQWPd\nXb7fVvwNnZ4qGw/I6v+R9S6e8/0nwT4mAK/PB9KzDlwxFoqNQVBHYXWtquWF\ntF7uMnUiOznVwGHLELY16c/B+18npHyEoSY4k3HBnfEstoKyL8wCyo14e3Pc\nhWvg\r\n=/DH4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD61GCHuIk4TEHe7EnJrYYb0ruL/18RseYscnKb+oZbywIhAM7BosCDmJGQpz/X7lAP1patOY8sl2DSxjQH+1E0OZBf"}]},"_npmUser":{"name":"anthonyalbertyn","email":"anthonyalbertyn@gmail.com"},"directories":{},"maintainers":[{"name":"anthonyalbertyn","email":"anthonyalbertyn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/interval-emitter_0.1.2_1643510526729_0.45942362603259435"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-30T01:41:30.956Z","0.1.0":"2022-01-30T01:41:31.116Z","modified":"2022-04-04T14:21:41.244Z","0.1.2":"2022-01-30T02:42:06.939Z"},"maintainers":[{"name":"anthonyalbertyn","email":"anthonyalbertyn@gmail.com"}],"description":"Emits a specified event at a specified interval for Node applications","homepage":"https://github.com/anthonyalbertyn/interval-emitter#readme","repository":{"type":"git","url":"git+https://github.com/anthonyalbertyn/interval-emitter.git"},"author":{"name":"Anthony Albertyn"},"bugs":{"url":"https://github.com/anthonyalbertyn/interval-emitter/issues"},"license":"MIT","readme":"# interval-emitter\n\nIntervalEmitter can be used in server-side Node projects\n\nMIT License, see LICENSE for more details\n\n## Uses case\n\nEmit a specified event at a specified interval. See /examples in this node module for some use cases.\n\n## Getting started\n\n```\nnpm install @anthonyalbertyn/interval-emitter\n```\n\n## Using interval-emitter\n\n```\nconst IntervalEmitter = require('@anthonyalbertyn/interval-emitter');\n\n// First argument is milliseconds (positive integer, required)\n// Second argument is the event name that will be emitted (string, required)\nconst myIntervalEmitter = new IntervalEmitter(1000, \"my-event\");\n\nmyIntervalEmitter.start();\n\nmyIntervalEmitter.on('my-event', () => {\n    console.log(\"Hello\");\n});\n```\n\nTo stop the emitter in your code\n\n```\nmyIntervalEmitter.stop();\n```\n\nYou can create more than one IntervalEmitter in your code.\n\n## Limitations\n\nIntervalEmitter does not emit arguments, just an event\n\n## Maintainers\n\nThere is currently only one maintainer, Anthony Albertyn, and the plan is to keep this module simple, light-weight and not add more features unless there are good reasons to do so.","readmeFilename":"README.md"}