{"name":"portscanner","description":"Asynchronous port scanner for Node.js","keywords":["portscanner","port","scanner","checker","status"],"version":"0.2.2","preferGlobal":false,"homepage":"https://github.com/baalexander/node-portscanner","author":"","repository":{"type":"git","url":"git://github.com/baalexander/node-portscanner.git"},"bugs":{"url":"https://github.com/baalexander/node-portscanner/issues"},"directories":{"lib":"./lib"},"main":"./lib/portscanner.js","dependencies":{"async":"0.1.15"},"devDependencies":{},"engines":{"node":">=0.4","npm":">=1.0.0"},"licenses":[{"type":"MIT","url":"https://github.com/baalexander/node-portscanner/raw/master/LICENSE"}],"_id":"portscanner@0.2.2","dist":{"shasum":"8393ee1284e6e1af3fd7d5f606a2fd378ce37438","tarball":"http://registry-npm.ywwl.com/portscanner/download/portscanner-0.2.2.tgz","integrity":"sha512-06hjQmz+5Shq1BKKbgeIzkVF1FOY1byl/5o4flAUbWWcbDJjvwYfMyRVIDEWRSann0FEFuHx6289BB6Sinug0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuA7VTJ57atVdBqcICnfxxWl30c5Csn8DwKsR/DvW0FwIhAM3FGZmAIglfXeYBgrz2K5Ho3ehb2gXnGq5Sj5Yt7Be+"}],"size":3195,"noattachment":false,"key":"/portscanner/-/portscanner-0.2.2.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"smassa","email":"endangeredmassa@gmail.com"},"maintainers":[{"name":"smassa","email":"endangeredmassa@gmail.com"}],"readme":"# portscanner\n\n[![npm](https://img.shields.io/npm/v/portscanner.svg)](https://www.npmjs.com/package/portscanner)\n[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\nThe portscanner module is\nan asynchronous JavaScript port scanner for Node.js.\n\nPortscanner can check a port,\nor range of ports,\nfor 'open' or 'closed' statuses.\n\n[Looking for maintainer](https://github.com/baalexander/node-portscanner/issues/25)!\n\n## Install\n\n```bash\nnpm install portscanner\n```\n\n## Usage\n\nA brief example:\n\n```javascript\nvar portscanner = require('portscanner')\n\n// Checks the status of a single port\nportscanner.checkPortStatus(3000, '127.0.0.1', function(error, status) {\n  // Status is 'open' if currently in use or 'closed' if available\n  console.log(status)\n})\n\n// Find the first available port. Asynchronously checks, so first port\n// determined as available is returned.\nportscanner.findAPortNotInUse(3000, 3010, '127.0.0.1', function(error, port) {\n  console.log('AVAILABLE PORT AT: ' + port)\n})\n\n// Find the first port in use or blocked. Asynchronously checks, so first port\n// to respond is returned.\nportscanner.findAPortInUse(3000, 3010, '127.0.0.1', function(error, port) {\n  console.log('PORT IN USE AT: ' + port)\n})\n\n// You can also pass array of ports to check\nportscanner.findAPortInUse([3000, 3005, 3006], '127.0.0.1', function(error, port) {\n  console.log('PORT IN USE AT: ' + port)\n})\n\n// And skip host param. Default is '127.0.0.1'\nportscanner.findAPortNotInUse(3000, 4000, function(error, port) {\n  console.log('PORT IN USE AT: ' + port)\n})\n\n// And use promises\nportscanner.findAPortNotInUse(3000, 4000).then(function(port) {\n  console.log('PORT IN USE AT: ' + port)\n})\n```\n\nThe example directory contains a more detailed example.\n\n## Test\n\n```sh\nnpm test\n```\n\n## Future\n\nPlease create issues or pull requests\nfor port scanning related features\nyou'd like to see included.\n\n## License (MIT)\n\n[MIT](LICENSE)\n\n","publish_time":1391655539225,"_cnpm_publish_time":1391655539225,"dist-tags":{"latest":"2.2.0"}}