{"_id":"on-net-listen","_rev":"5-fe14da9039e056b18c01de6ddee9f12e","name":"on-net-listen","description":"Observe when something in your node app starts listening on a TCP port","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"on-net-listen","version":"1.0.0","description":"Observe when something in your node app starts listening on a TCP port","main":"index.js","dependencies":{},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/on-net-listen.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/on-net-listen/issues"},"homepage":"https://github.com/mafintosh/on-net-listen","gitHead":"d0dc701dd1bd884b880da2c8069d59fdb11cbf34","_id":"on-net-listen@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-2s+IrmCqKAx0R8jsJoEwOm/o/g4wv6SZ5c1KJ5Xvhis8InQc1moje0SkeZc2CkqSutd8vDXS/YL65Fsgn73KNg==","shasum":"0443a1f4113fca7de279290efd4015f7af6d336e","tarball":"https://registry.npmjs.org/on-net-listen/-/on-net-listen-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAj4JrdXLhpSGXeYqQMDfLKvDPQ38dQkaRcUlBLovORpAiEAqXuXFYLDHY+hLGH/qadGbPxaGjKdoL9WMRJrmGqXoEU="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/on-net-listen-1.0.0.tgz_1516282005994_0.08504376420751214"},"directories":{}},"1.1.0":{"name":"on-net-listen","version":"1.1.0","description":"Observe when something in your node app starts listening on a TCP port","main":"index.js","engines":{"node":">=9.0.0"},"dependencies":{},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/on-net-listen.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/on-net-listen/issues"},"homepage":"https://github.com/mafintosh/on-net-listen","gitHead":"104c7d290c04142a87cafdc597bf70f2f75e27ef","_id":"on-net-listen@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-iIbLVItbsiAWbvZa7mmnJf1E8mwWRX5zaKQ3CRN+M9mHtl/ixtD3/UCN1pFNnorJ+PRGi0EghVmKVXZrloXW2A==","shasum":"2692e52361072c06babfbe2649d003e6631f5d87","tarball":"https://registry.npmjs.org/on-net-listen/-/on-net-listen-1.1.0.tgz","fileCount":7,"unpackedSize":5121,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaEDG1xdF5yqU2tZQhT8noaSYQb2vjTPu0/1NP5SmVjAiByVOla4Pi6OJHlFUyycygis1u33Wq11jiy80w5Bxkzvg=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/on-net-listen_1.1.0_1520612056981_0.42606032644927927"},"_hasShrinkwrap":false},"1.1.1":{"name":"on-net-listen","version":"1.1.1","description":"Observe when something in your node app starts listening on a TCP port","main":"index.js","engines":{"node":"^9.4.0 || ^8.9.4"},"dependencies":{},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/on-net-listen.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/on-net-listen/issues"},"homepage":"https://github.com/mafintosh/on-net-listen","gitHead":"25bca8b85982beb5098343cada286e8ae9c10ca5","_id":"on-net-listen@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-qAlVuANrNVnE6UPdBxrcsp43f5UcHbwVZh5GyK8ZaxfODvN7BBahBokcJE0ZJ5uK2c2bVWwomu5QJulzELg/Mg==","shasum":"dd71f9adcf63fb410fa5887d8bb422dba31ad4e3","tarball":"https://registry.npmjs.org/on-net-listen/-/on-net-listen-1.1.1.tgz","fileCount":7,"unpackedSize":5130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7GPhCRA9TVsSAnZWagAAKJ0QAIsZROHipTKCPhLmCXpO\nJchU5tx8ku3QZbWcJqlP9ErkySVfyD0Yw1KIP4MrBpQ3xBFUz84bPRs9uZRj\nMCXxd/1PfBtKY0XYjfNSJpkz96yC34bMQcilSpkmacJ/OX491pDtBBL+2hbk\nysy8CH6iWKsGWkMnW4jjxqUM9wa6Jj26WX31ap7/ssyHi5xU1RczwAPnSxy4\nVVnsKebZ6wG3N6zp4yGw2EOuXk3tzXtuVsjdbI3rrmxr6D6X1TFRyMaf7G8k\njiFJCegKxEufN/i9PHELnY87fXare4fUczLoeGFEMZWz6sFAQRk5eOot5rR7\nylq6iMzHj2QLIEMCbdwYRQASvzB4uZp1FTpIFVLo00OYTvUsJyGiOIiKFnpO\njWw+ojOZDSCfS9Cmu2OgoxeuWAEspGaB9udsyWJq1UlRQkgJCnmw0TMEdYzN\nd8HN955MvAWZB6X00rek5fgELLcwthSHMrdNOYZabpSdlpsYwZbJ/bFI/lS1\nP3RNKFoLorZTfKkrZdC5WV6ubAi4xK3f+UG2EPcWua/jVYtGQiHMVDePl6AX\nbm7dbLARecxOczyS8TizHW0exgHSifPUt0JEHbeUBHEQL5ikOxm1+ipQbh+e\n8mOonjj8ZswA5pfqNohnFu00MkX2ln0Dtd/m4H/wTr8NleyYGsNmEPzElt2O\nbRyA\r\n=6VMG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8YAH7NvF3NCzj5z2AkNfRnzSeC2UrRamCBlLIkxRbcwIhAM/WX5Fsdt5GTJBvyHNdsUbvyJB7NElD1A1OgZyhJ+n6"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/on-net-listen_1.1.1_1525441505170_0.7083284679012269"},"_hasShrinkwrap":false},"1.1.2":{"name":"on-net-listen","version":"1.1.2","description":"Observe when something in your node app starts listening on a TCP port","main":"index.js","engines":{"node":">=9.4.0 || ^8.9.4"},"dependencies":{},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/on-net-listen.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/on-net-listen/issues"},"homepage":"https://github.com/mafintosh/on-net-listen","gitHead":"1fe935e5d31b755c4f3a95dcffa5df867f8725c4","_id":"on-net-listen@1.1.2","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-y1HRYy8s/RlcBvDUwKXSmkODMdx4KSuIvloCnQYJ2LdBBC1asY4HtfhXwe3UWknLakATZDnbzht2Ijw3M1EqFg==","shasum":"671e55a81c910fa7e5b1e4d506545e9ea0f2e11c","tarball":"https://registry.npmjs.org/on-net-listen/-/on-net-listen-1.1.2.tgz","fileCount":7,"unpackedSize":5131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbawU3CRA9TVsSAnZWagAARnQQAIyaLcHvkb8F6cm0Cpfd\ngvJ6Y6i4d6tNIap5UJcm6zjYWNGAQfL0WiyBuwrZhh051tPvvynxC9+gcI7v\n0Hs6NJ5CW2vXixADpeGrcuMf/OKPMSiFoBfS1fYzNSZCDw9ReMpifauraH5a\nJE8pA9XcmdAeXJYYKXIZR8ySaECX8yY5McxERP6WnbobAAtpWLBw+bYiG9pM\nHvIDMG+lb6ga0kmiVhaEelV7shQ/pJou9vi/wSZrNQ+M1z2bIFzY87LBmL1N\n5cbbsjA7kOZdWChC3ZNW1z8YjLN6W4NIDSOPuQIl4AXewhRYqWkrAP8j6Nef\nD59hVuAFqcoEMbS4rDc09/ZTGELxXWHgPz60SBBdYwUm+z6QDGMwISBt+J02\n5KkWgiNIyRiN5Sbts3UowbmsmDjCgb2wPc6jxirH3zuKEWRxMOB1lixb3R83\no8RNEuBOrtLMGAoNVJrE0DUH9HGxzlGi5Pxx8yaIyMD6YvO3Ou2oRMgibQQv\nX7vgHa2gUoRGIlCZc/2FLnKYPetZdgZOYvYNTUmJCyTWE9exp+ZT6iJRqwCE\nAcm4HL0aveivmz1boxT9OR0Tmyiv/pS5wy0yCiCvxv9syX1SzeV0NJcVN77V\nXNF2qY2HYTovbxU1h4yx6Ko67IohJKeCuauWKyRjtb2UNcy/MwiduUbrnRbL\nNQjb\r\n=ppoI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLwgTSrcHe/Fdcsd8DPfsnCAT91+H8J0JW5fN7FEMszAIhAPVfD4977cVIFgelcSFiUkiblCIeBUCh5cegx0NNZYpg"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/on-net-listen_1.1.2_1533740334857_0.3569110528246038"},"_hasShrinkwrap":false}},"readme":"# on-net-listen\n\nObserve when something in your node app starts listening on a TCP port.\n\n```\nnpm install on-net-listen\n```\n\n[![build status](https://travis-ci.org/mafintosh/on-net-listen.svg?branch=master)](https://travis-ci.org/mafintosh/on-net-listen)\n\nUses `async_hooks` behind the scenes and requires Node >=9\n\n## Usage\n\n``` js\nvar onnetlisten = require('on-net-listen')\n\nonnetlisten(function (addr) {\n  // addr is the same object as server.address()\n  // for the port do addr.port\n  console.log('Someone started listening:', addr)\n})\n\nvar http = require('http')\n\nvar server = http.createServer(function () {\n  // ...\n})\n\nserver.listen(0) // will trigger the above listener\n```\n\n## API\n\n#### `var emitter = onnetlisten(onlistening)`\n\nStart listening for when TCP servers start listening.\n\nThe returned event emitter emits `listening` when that happens\nwith the address object for the tcp server that started listening.\n\nTo stop the listener do `emitter.destroy()`\n\n## Acknowledgements\n\nCredit to [@andreasmadsen](https://github.com/andreasmadsen) for writing most of this module and being an async_hooks wizard\n\nThis project was kindly sponsored by nearForm.\n\n## License\n\nMIT\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-05-12T04:23:33.982Z","created":"2018-01-18T13:26:46.083Z","1.0.0":"2018-01-18T13:26:46.083Z","1.1.0":"2018-03-09T16:14:17.048Z","1.1.1":"2018-05-04T13:45:05.227Z","1.1.2":"2018-08-08T14:59:03.488Z"},"homepage":"https://github.com/mafintosh/on-net-listen","repository":{"type":"git","url":"git+https://github.com/mafintosh/on-net-listen.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/on-net-listen/issues"},"license":"MIT","readmeFilename":"README.md"}