{"name":"is-port-reachable","version":"3.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":">=8"},"scripts":{"test":"xo && ava"},"keywords":["port","reachable","local","remote","host","ip","localhost","address","connect","connectable","online","socket","tcp","is","check"],"devDependencies":{"ava":"^2.4.0","xo":"^0.25.3"},"gitHead":"b278e6cabb8bd31957f6cf0fcff9ab3e4c91ccc4","bugs":{"url":"https://github.com/sindresorhus/is-port-reachable/issues"},"homepage":"https://github.com/sindresorhus/is-port-reachable#readme","_id":"is-port-reachable@3.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-056IzLiWHdgVd6Eq1F9HtJl+cIkvi5X2MJ/A1fjQtByHkzQE1wGardnPhqrarOGDF88BOW+297X7PDvZ2vcyVg==","shasum":"edf721e7d354e6e00cbeb0fc174ad89bdf6056b3","tarball":"http://registry-npm.ywwl.com/is-port-reachable/download/is-port-reachable-3.0.0.tgz","fileCount":4,"unpackedSize":3211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyoA2CRA9TVsSAnZWagAAvKUP/2L8PN9YYsT+Iwlb0b/9\nWgECY8ZXfP4FQVvzz+B7DPh6xCAh7YVPdc7oqZaTbwNXnT7h6YrcBdyZ5egY\nDGAR2UiXPD8ul/X93au5DI90qU1XaRSvzPv4lmcmaorJAblFRyPZ/lwF9jDD\nxtyJEK9ptZm4tl2oYUJgqvTDFEduBTuTwjHcouAB1zpGvTlZiWLqrzRmqXoE\n3PFkdEShWN8a8Zn9EUEnOyp7cn6PqRVEt/2U4qMchG8OCswe5K79IHQCoFpN\nN00ImNx/L4HvH2rHhDdL6zsjC7x/2VFR5BSNlh25PB6YbxSd0WzmovXwKEqz\nl6p19HEcB/kN3SRMss/xS4a1kgkkts6GftklSk8dxrl8SgKTMRxH14KZkk8N\ne0LTzQcJj07faCtwpBu0WkBdkJmTBIZc0JjEsKhl6hLQARgJOIrTdnnhskx3\nLNYwQWeJho3+bLEwlt+NvBnCMJA555gAiaNmVJMVH+sk7RJfltlG429pbp6/\nfnV94xhiSzfweoGmiKCFridrFCHC3iVmr2y5VkpJUEk+37ub6ZlQyHkRSqxY\n2B+rYJbgxo8QMce4wbGbcWyR2zsCot9wCc+Fn9DNfLQTBMXZnkkCymjGDLxC\nmt6LKzbZh8Jd5OKmuVXcC/nXjg9qQROPlBN7S+YnjfNOSusAs5iDETZyCZRU\n0VWj\r\n=jjcj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGV6T0WRV26guhd7IOCmNljyPURwZ1cZlTUVHhl2owf/AiBqu4EP2LatS3/lMSuLGWijJ7MrWA53lWywtqk5Bbel3w=="}],"size":1782,"noattachment":false,"key":"/is-port-reachable/-/is-port-reachable-3.0.0.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_3.0.0_1573552181936_0.14365984916306718"},"_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":1573552182096,"_cnpm_publish_time":1573552182096,"dist-tags":{"latest":"4.0.0"}}