{"name":"is-port-reachable","version":"2.0.1","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"},"keywords":["port","reachable","local","remote","host","ip","localhost","address","connect","connectable","online","socket","tcp","is","check"],"devDependencies":{"ava":"^0.25.0","xo":"^0.18.0"},"gitHead":"4de179a7bd93c68fa8064d514b013b707519a44d","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.1","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-SqU55C5gkitgOhl2ccd2v23MbkbcOFa5e4aPo8h8VGqOifh7iDwG44bQBWGW/lZulTjl9AWIKP0NiUWpa+TtWA==","shasum":"e0778d0733beac1ade3ba72a5fe77db50a59926b","tarball":"http://registry-npm.ywwl.com/is-port-reachable/download/is-port-reachable-2.0.1.tgz","fileCount":4,"unpackedSize":3240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcruXWCRA9TVsSAnZWagAAQb4QAI7VY0im/enChFiys3Bj\npOPyQoGbA3wL1AxEpMrVl9jjRYEcnu0EBSU9a66DdAriEHuzDUrOlvst/td4\nKdfykEqkruJeZDwwtoK1gbS4PV8RpbBwSUXsrWbDotQJ2FoxURScX6AJ/JIT\nDxLHenkbzd5GmaMk/66tSV2zupc+flyMgqphn4fPzOliiNE4Bg8GiNziEeEd\nHx0uTq5rPaMLytc+Dngvmm4Tq/oLl47AvJhvJq6jKLQZBSeWkxhUaVd656oS\nNxVa3kol/blIIHEohh315HhddSTK+3WC6lkdRzdiWjgyqdpkE2P3KLlNVOZ1\ntTgfslO1loxMLIVyuxJL27HmoSlKgMgtbZJTXhtz5NEgLBkq8FRHfRApcTXK\n25F73+OyFugNgahE6M0A5VO306i4nfvxWnj6HErwvAf2hfy8VzRaPJnoyxgH\nhADSF45t1DLGiaWU6x99lk18wXeqw1kNtYZsJ07X+1FDebrH78k1vQBbtFCT\nvJKyi4AVZA3IGJbyLvb1MDV0Yr81c2kgQ9uBRogGICxYEEpNXq1CTpJ+4Jhb\nUsPqhmjuJgvXIprH8svbYtuqBTh/V58xNSaBcaXMaCIiwjlPhtS1Z/2vAA+w\ne7T5I0MFryyV4pbJOXK5FY5nLxjDHFfMTIKl4BMPfCu/7v3R7LlzuJttyC2G\nzekf\r\n=EyTe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzL08zbGFlMjpkE3INDvZPm/toOVmiiEn1DJtD9dD6QQIhAIG99LRNaSqeXEHgLaKfHL8hQvSmYSopjXs0aqYl4VwP"}],"size":1774,"noattachment":false,"key":"/is-port-reachable/-/is-port-reachable-2.0.1.tgz"},"maintainers":[{"name":"silverwind","email":"me@silverwind.io"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-port-reachable_2.0.1_1554965973749_0.5698361467988649"},"_hasShrinkwrap":false,"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":1554965973930,"_cnpm_publish_time":1554965973930,"dist-tags":{"latest":"4.0.0"}}