{"name":"is-port-reachable","version":"2.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":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["port","reachable","local","remote","host","ip","localhost","address","connect","connectable","online","socket","tcp","is","check"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"c6dd28e8fb1ff7ad63cd71320b5bef4f9a374532","bugs":{"url":"https://github.com/sindresorhus/is-port-reachable/issues"},"homepage":"https://github.com/sindresorhus/is-port-reachable#readme","_id":"is-port-reachable@2.0.0","_shasum":"54d13d654917eb433ae3ee2dcbc3774f2cd44eb2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"54d13d654917eb433ae3ee2dcbc3774f2cd44eb2","tarball":"http://registry-npm.ywwl.com/is-port-reachable/download/is-port-reachable-2.0.0.tgz","integrity":"sha512-RAGKB0dEDOCn7f5mdhvj3LiCF/7xu29eWIA2m8vkJXBU2BcJqanY2gqZSpy+Csau+jwXV0gIHET55Nqyk8R26A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDh0lhBb9qzEw3dNxE+gj+Ugx6JW3w0e4EmHIKfxBy0XAIhAL8LG4jcIDDuBfdM/0Ul0gZk6j2Z1PGnO6gmbuh0dVSC"}],"size":1832,"noattachment":false,"key":"/is-port-reachable/-/is-port-reachable-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"silverwind","email":"me@silverwind.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-port-reachable-2.0.0.tgz_1473405825117_0.20653538033366203"},"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":1473405825378,"_cnpm_publish_time":1473405825378,"dist-tags":{"latest":"4.0.0"}}