{"name":"is-port-reachable","version":"3.1.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 && tsd"},"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","tsd":"^0.17.0"},"gitHead":"ca9a3792f416d3ffdd0cf0149dc0b398645c772f","bugs":{"url":"https://github.com/sindresorhus/is-port-reachable/issues"},"homepage":"https://github.com/sindresorhus/is-port-reachable#readme","_id":"is-port-reachable@3.1.0","_nodeVersion":"12.22.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-vjc0SSRNZ32s9SbZBzGaiP6YVB+xglLShhgZD/FHMZUXBvQWaV9CtzgeVhjccFJrI6RAMV+LX7NYxueW/A8W5A==","shasum":"f6668d3bca9c36b07f737c48a8f875ab0653cd2b","tarball":"http://registry-npm.ywwl.com/is-port-reachable/download/is-port-reachable-3.1.0.tgz","fileCount":5,"unpackedSize":3579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNFolbjphw3m9EsPgveXaFeCyvoAAHUDVKeF8LW9gu1gIhAKGaLnW4yUe/zrK1Bhs2Wc6bYq6xBT+A6bjg7+gcg62z"}],"size":1908,"noattachment":false,"key":"/is-port-reachable/-/is-port-reachable-3.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"silverwind","email":"npm@silverwind.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-port-reachable_3.1.0_1632042882826_0.615878045506767"},"_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":1632042882964,"_cnpm_publish_time":1632042882964,"dist-tags":{"latest":"4.0.0"}}