{"name":"is-port-reachable","version":"1.0.0","description":"Check if a local or remote port is reachable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-port-reachable.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"contributors":[{"name":"silverwind","email":"me@silverwind.io","url":"github.com/silverwind"}],"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && node test.js"},"files":["index.js"],"keywords":["port","reachable","local","remote","host","ip","localhost","address","connect","connectable","online","socket","tcp","is","check"],"dependencies":{"onetime":"^1.0.0"},"devDependencies":{"ava":"0.0.4","xo":"*"},"gitHead":"d5cc03b3dc405a00bb61fed7232a334d5eb69b3a","bugs":{"url":"https://github.com/sindresorhus/is-port-reachable/issues"},"homepage":"https://github.com/sindresorhus/is-port-reachable#readme","_id":"is-port-reachable@1.0.0","_shasum":"7d933a217d0399576709e27b4f0ded5a500d94d6","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7d933a217d0399576709e27b4f0ded5a500d94d6","tarball":"http://registry-npm.ywwl.com/is-port-reachable/download/is-port-reachable-1.0.0.tgz","integrity":"sha512-hq7Bua/G4K5WtHn7ZZAxSR9uCEMgVoxAWRoH9DwGgENKq/KNaV1hgnN+AUd2wNwlFn9qAxNScgrRHlxMGDggCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT3TmM8pUp+ki6BOSjQmNNcQO1s+A/1eARDVwX8ewx5wIhANxS0vneUmp79p1nAUUG3T1SIkN5zoVLxMYRrHSnk8Fo"}],"size":1902,"noattachment":false,"key":"/is-port-reachable/-/is-port-reachable-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# is-port-reachable\n\n> Check if a local or remote port is reachable\n\n## Install\n\n```sh\nnpm install is-port-reachable\n```\n\n## Usage\n\n```js\nimport isPortReachable from 'is-port-reachable';\n\nconsole.log(await isPortReachable(80, {host: 'google.com'}));\n//=> true\n```\n\n## API\n\n### isPortReachable(options)\n\nReturns `Promise<boolean>` for whether the port is reachable.\n\n##### port\n\nType: `number`\n\nThe port to check.\n\n#### options\n\nType: `object`\n\n##### host\n\n**Required**\\\nType: `string`\\\nExample: `'localhost'`\n\nThe host to check.\n\nCan be a domain (optionally, with a sub-domain) or an IP address.\n\n##### timeout\n\nType: `number`\\\nDefault: `1000`\n\nThe time to wait in milliseconds before giving up.\n\n## Related\n\n- [is-reachable](https://github.com/sindresorhus/is-reachable/) - Check if servers are reachable\n","publish_time":1440413732061,"_cnpm_publish_time":1440413732061,"dist-tags":{"latest":"4.0.0"}}