{"_id":"link-exists","_rev":"7-73bf175e4995d2a1d38b39afec39db28","name":"link-exists","dist-tags":{"latest":"2.0.4"},"versions":{"1.0.0":{"name":"link-exists","version":"1.0.0","keywords":["badwords","bad-words","typescript","javascript","adult","remove","search","finder","find","xxx","pornographic","nfsw"],"author":{"url":"Jameer Khan","name":"StackBlogger","email":"jimcute8879@gmail.com"},"license":"ISC","_id":"link-exists@1.0.0","maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"homepage":"https://github.com/stackblogger/link-exists#readme","bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"dist":{"shasum":"4748783b2d76c5ecb5ed8dbf20c7c5d6b947b12f","tarball":"https://registry.npmjs.org/link-exists/-/link-exists-1.0.0.tgz","fileCount":11,"integrity":"sha512-nHI3oe++Bsy3c7MauwzPIeIg+TJisc6TTMsfjxW2NdHbI7bbucGhUckEnEb0/8YWyIyAsLA4XuS7iF/gV8ly2g==","signatures":[{"sig":"MEYCIQCRv9jDwmllLoRwvpYcdeCiRkW+J1qdMlUQOzv98G+sIAIhAII1jDjUIZbTs52528sGy4OeNQzfz15VlSafStl/lEUn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6478},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","engines":{"node":">= 16.0.0"},"gitHead":"805a39a1e57dbef2317f61c61d425258dcb03cb2","scripts":{"dev":"rollup --config && node dist/index.js","lint":"eslint .","test":"jest --coverage","build":"rollup --config","prepublish":"jest --coverage && eslint . && rollup --config"},"_npmUser":{"name":"jimcute","email":"jimcute8879@gmail.com"},"repository":{"url":"git+https://github.com/stackblogger/link-exists.git","type":"git"},"_npmVersion":"8.11.0","description":"Read and Parse Parent Package Json file in TypeScript.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"http":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.20.0","ts-jest":"^28.0.7","@types/jest":"^28.1.6","@types/node":"^18.15.11","eslint-plugin-import":"^2.26.0","rollup-plugin-terser":"^7.0.2","@typescript-eslint/parser":"^5.31.0","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-typescript2":"^0.32.1","eslint-config-airbnb-typescript":"^17.0.0","@typescript-eslint/eslint-plugin":"^5.31.0"},"_npmOperationalInternal":{"tmp":"tmp/link-exists_1.0.0_1683479596814_0.8174724797250936","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"link-exists","version":"1.1.0","keywords":["badwords","bad-words","typescript","javascript","adult","remove","search","finder","find","xxx","pornographic","nfsw"],"author":{"url":"Jameer Khan","name":"StackBlogger","email":"jimcute8879@gmail.com"},"license":"ISC","_id":"link-exists@1.1.0","maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"homepage":"https://github.com/stackblogger/link-exists#readme","bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"dist":{"shasum":"175a6b34808efad35ec152913e4f782a5a667fa6","tarball":"https://registry.npmjs.org/link-exists/-/link-exists-1.1.0.tgz","fileCount":11,"integrity":"sha512-ZzuYg93hRwDINCAUXTaJCH9sO/c2q2eOpLWH4PygyogUm8R9KIQHR4/5Q+oo/ltmja3BSs0U/2gPOGbUQX4a/Q==","signatures":[{"sig":"MEUCIBgcPPu60ZkttPnTrojJNgC5znqCnNK6CWUiwSNuFqHQAiEA9AFHc0IrlB0Z8fQNnUyWT4d9MKd5X1s5YB4+XhP3xFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7043},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","engines":{"node":">= 16.0.0"},"gitHead":"9f6ca49e31ebfd1c99cdc9bba82e8de83567f632","scripts":{"dev":"rollup --config && node dist/index.js","lint":"eslint .","test":"jest --coverage","build":"rollup --config","prepublish":"jest --coverage && eslint . && rollup --config"},"_npmUser":{"name":"jimcute","email":"jimcute8879@gmail.com"},"repository":{"url":"git+https://github.com/stackblogger/link-exists.git","type":"git"},"_npmVersion":"8.11.0","description":"Read and Parse Parent Package Json file in TypeScript.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"http":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.20.0","ts-jest":"^28.0.7","@types/jest":"^28.1.6","@types/node":"^18.15.11","eslint-plugin-import":"^2.26.0","rollup-plugin-terser":"^7.0.2","@typescript-eslint/parser":"^5.31.0","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-typescript2":"^0.32.1","eslint-config-airbnb-typescript":"^17.0.0","@typescript-eslint/eslint-plugin":"^5.31.0"},"_npmOperationalInternal":{"tmp":"tmp/link-exists_1.1.0_1683480832608_0.00717496110587712","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"link-exists","version":"1.2.0","keywords":["link-exists","url-exist","url-validator","link-validator"],"author":{"url":"Jameer Khan","name":"StackBlogger","email":"jimcute8879@gmail.com"},"license":"ISC","_id":"link-exists@1.2.0","maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"homepage":"https://github.com/stackblogger/link-exists#readme","bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"dist":{"shasum":"a2f3b11f27118694545d9b97584f06d0c1ebdc1a","tarball":"https://registry.npmjs.org/link-exists/-/link-exists-1.2.0.tgz","fileCount":11,"integrity":"sha512-lzAXYf/tNj8JtyWoweL2tastFCYKU6e6sViRIt9P4cJa7Mow9UHkM/xG6Td5Jut79lTTTxaI/1Lgy+XO6MpHdg==","signatures":[{"sig":"MEYCIQDnYrWGKPNvtJke5MbWX6rP68/Z93SRMtfoF2vOx+Hx5wIhALfmWtQTZIrk5l2Q+fQ2ZirwF+bwPCqvUNfJGcjTKE4A","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7633},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","engines":{"node":">= 16.0.0"},"gitHead":"ebbb8b36dbc2c491a1e68df0ae2107fb8c90fd95","scripts":{"dev":"rollup --config && node dist/index.js","lint":"eslint .","test":"jest --coverage","build":"rollup --config","prepublish":"jest --coverage && eslint . && rollup --config"},"_npmUser":{"name":"jimcute","email":"jimcute8879@gmail.com"},"repository":{"url":"git+https://github.com/stackblogger/link-exists.git","type":"git"},"_npmVersion":"8.11.0","description":"Checks whether a given link exists.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"http":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.20.0","ts-jest":"^28.0.7","@types/jest":"^28.1.6","@types/node":"^18.15.11","eslint-plugin-import":"^2.26.0","rollup-plugin-terser":"^7.0.2","@typescript-eslint/parser":"^5.31.0","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-typescript2":"^0.32.1","eslint-config-airbnb-typescript":"^17.0.0","@typescript-eslint/eslint-plugin":"^5.31.0"},"_npmOperationalInternal":{"tmp":"tmp/link-exists_1.2.0_1683744121994_0.931941916715658","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"link-exists","version":"1.2.1","keywords":["link-exists","url-exist","url-validator","link-validator"],"author":{"url":"Jameer Khan","name":"StackBlogger","email":"jimcute8879@gmail.com"},"license":"ISC","_id":"link-exists@1.2.1","maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"homepage":"https://github.com/stackblogger/link-exists#readme","bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"dist":{"shasum":"d99452a192afbfaa08f1f3cbe0f937263dd63622","tarball":"https://registry.npmjs.org/link-exists/-/link-exists-1.2.1.tgz","fileCount":11,"integrity":"sha512-C+Qcinxmey58Xv3j8kgRVqlhdW6egd24Gc4jmglOlJp9ZIHo28mPI6o8Rvdo8qTjRBS46QXKL7ZT0pDnfy0xHA==","signatures":[{"sig":"MEQCID5P2PnJgQOt0O+D/hx8Df7+cfxF0o1EGZg31kWjY8PsAiB/PZyhLJ6RB8ktdXXLSt6WmO4oBHkA4nfh8fSyTfn4Qg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7633},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","engines":{"node":">= 16.0.0"},"gitHead":"53c08c723e9d37865d0462be78fe8c7e48ad38af","scripts":{"dev":"rollup --config && node dist/index.js","lint":"eslint .","test":"jest --coverage","build":"rollup --config","prepublish":"jest --coverage && eslint . && rollup --config"},"_npmUser":{"name":"jimcute","email":"jimcute8879@gmail.com"},"repository":{"url":"git+https://github.com/stackblogger/link-exists.git","type":"git"},"_npmVersion":"8.11.0","description":"Checks whether a given link exists.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"http":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.20.0","ts-jest":"^28.0.7","@types/jest":"^28.1.6","@types/node":"^18.15.11","eslint-plugin-import":"^2.26.0","rollup-plugin-terser":"^7.0.2","@typescript-eslint/parser":"^5.31.0","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-typescript2":"^0.32.1","eslint-config-airbnb-typescript":"^17.0.0","@typescript-eslint/eslint-plugin":"^5.31.0"},"_npmOperationalInternal":{"tmp":"tmp/link-exists_1.2.1_1684474184641_0.6865271392246748","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"link-exists","version":"1.2.2","keywords":["link-exists","url-exist","url-validator","link-validator","link-check","validator","verify","node.js","typescript"],"author":{"url":"Jameer Khan","name":"StackBlogger","email":"jimcute8879@gmail.com"},"license":"ISC","_id":"link-exists@1.2.2","maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"homepage":"https://stackblogger.com","bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"dist":{"shasum":"444ab7c8c2b19cd12f9ead9e029f66aee8213c4e","tarball":"https://registry.npmjs.org/link-exists/-/link-exists-1.2.2.tgz","fileCount":13,"integrity":"sha512-+XCx5L6sdebuhskxodjKpwAmX2L8esd4CNUQtw4Dn7Ztx4L30EPFhf9uH0Aw7JhYcRE8cNnZQkMcvKplhkkr+A==","signatures":[{"sig":"MEUCICKL66gRR4URQ7DdPigH0DOGT4tn3XbmPiSlvVrvSTUSAiEAlITnq5HfaNHcfd37o/bfXG9UWLjohTU/1AC5mf+lKGI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11978},"jest":{"preset":"ts-jest","testEnvironment":"node","coverageThreshold":{"global":{"branches":95}}},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","engines":{"node":">= 16.0.0"},"gitHead":"53c08c723e9d37865d0462be78fe8c7e48ad38af","scripts":{"dev":"rollup --config && node dist/index.js","lint":"eslint .","test":"jest --coverage","build":"rollup --config","prepublish":"jest --coverage && eslint . && rollup --config"},"_npmUser":{"name":"jimcute","email":"jimcute8879@gmail.com"},"repository":{"url":"git+https://github.com/stackblogger/link-exists.git","type":"git"},"_npmVersion":"8.11.0","description":"A super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.","directories":{},"_nodeVersion":"16.16.0","dependencies":{"http":"^0.0.1-security"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.20.0","ts-jest":"^28.0.7","@types/jest":"^28.1.6","@types/node":"^18.15.11","eslint-plugin-import":"^2.26.0","rollup-plugin-terser":"^7.0.2","@typescript-eslint/parser":"^5.31.0","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-typescript2":"^0.32.1","eslint-config-airbnb-typescript":"^17.0.0","@typescript-eslint/eslint-plugin":"^5.31.0"},"_npmOperationalInternal":{"tmp":"tmp/link-exists_1.2.2_1684830222785_0.010169677674990218","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"link-exists","version":"2.0.3","keywords":["link-exists","url-exist","url-validator","link-validator","link-check","validator","verify","node.js","typescript"],"author":{"url":"Jameer Khan","name":"StackBlogger","email":"jimcute8879@gmail.com"},"license":"ISC","_id":"link-exists@2.0.3","maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"homepage":"https://opensource.stackblogger.com/link-exists","bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"dist":{"shasum":"861f2117d2bc0be0257b9bccf6a73cf6235d93a0","tarball":"https://registry.npmjs.org/link-exists/-/link-exists-2.0.3.tgz","fileCount":13,"integrity":"sha512-vj/OSG80AKg4gkQhHaW3BrggFqo6ixHxm76TbfthcTA+D+S7iOQkvrrXvR7fn5z39zaEX8RwEizuOaCurNJf+A==","signatures":[{"sig":"MEUCIQD7ZpcKkSBUCo7b9MLceV5XXv8804+TSeAh7RZw6pHEggIgX6JpdJp2tznxdI/zrBHz1bJKLE/VsG5pTlvgzryaA9Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/link-exists@2.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14439},"jest":{"preset":"ts-jest","testEnvironment":"node","coverageThreshold":{"global":{"branches":95}}},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","engines":{"node":">= 18.0.0"},"gitHead":"e97f7b7053fe6e7a5dd205a5191a082cf1188bf7","scripts":{"dev":"rollup --config && node dist/index.js","lint":"eslint .","play":"rollup --config && node scripts/play.cjs","test":"jest --coverage","build":"rollup --config","prepublish":"jest --coverage && eslint . && rollup --config","postinstall":"node postinstall.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:41142ad0-6a6e-42f4-9042-e0206a4cde1d"}},"repository":{"url":"git+https://github.com/stackblogger/link-exists.git","type":"git"},"_npmVersion":"11.11.0","description":"A super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.20.0","ts-jest":"^28.0.7","@types/jest":"^28.1.6","@types/node":"^18.15.11","eslint-plugin-import":"^2.26.0","rollup-plugin-terser":"^7.0.2","@typescript-eslint/parser":"^5.31.0","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-typescript2":"^0.32.1","eslint-config-airbnb-typescript":"^17.0.0","@typescript-eslint/eslint-plugin":"^5.31.0"},"_npmOperationalInternal":{"tmp":"tmp/link-exists_2.0.3_1776223526425_0.7354097064110707","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"link-exists","version":"2.0.4","description":"A super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"postinstall":"node postinstall.js","test":"jest --coverage","build":"rollup --config","lint":"eslint .","dev":"rollup --config && node dist/index.js","play":"rollup --config && node scripts/play.cjs","prepublish":"jest --coverage && eslint . && rollup --config"},"repository":{"type":"git","url":"git+https://github.com/stackblogger/link-exists.git"},"keywords":["link-exists","url-exist","url-validator","link-validator","link-check","validator","verify","node.js","typescript"],"author":{"name":"StackBlogger","email":"jimcute8879@gmail.com","url":"Jameer Khan"},"license":"ISC","bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"homepage":"https://opensource.stackblogger.com/link-exists","devDependencies":{"@types/jest":"^28.1.6","@types/node":"^18.15.11","@typescript-eslint/eslint-plugin":"^5.31.0","@typescript-eslint/parser":"^5.31.0","eslint":"^8.20.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-airbnb-typescript":"^17.0.0","eslint-plugin-import":"^2.26.0","jest":"^28.1.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.32.1","ts-jest":"^28.0.7"},"jest":{"preset":"ts-jest","testEnvironment":"node","coverageThreshold":{"global":{"branches":95}}},"engines":{"node":">= 18.0.0"},"gitHead":"7db4654fd6565d2429fe0edd14e2c113bd7fd4fa","_id":"link-exists@2.0.4","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-8xibt2jPXLzyrCebTAAcyh9+X8lSgg2rruSoOHKIvX4Hzp/wG1/2fDv9D99PB4tKdLpLBdpW8XsqK11fvOLn7w==","shasum":"7dfd0cf603373b304ba67b73e43dfd3ffdc8b176","tarball":"https://registry.npmjs.org/link-exists/-/link-exists-2.0.4.tgz","fileCount":13,"unpackedSize":14571,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/link-exists@2.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICHvJXrHbwx6t8TOY0IQMoNpqGPiykb/0WO93w2CDOQLAiAMehcUn+YR/XZ9wIjIdfFhvHQ1/1lmepCArY8PpwnnHA=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:41142ad0-6a6e-42f4-9042-e0206a4cde1d"}},"directories":{},"maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/link-exists_2.0.4_1776226835338_0.18545912075841264"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-07T17:13:16.813Z","modified":"2026-04-15T04:20:35.748Z","1.0.0":"2023-05-07T17:13:16.994Z","1.1.0":"2023-05-07T17:33:52.784Z","1.2.0":"2023-05-10T18:42:02.187Z","1.2.1":"2023-05-19T05:29:44.833Z","1.2.2":"2023-05-23T08:23:42.959Z","2.0.3":"2026-04-15T03:25:26.568Z","2.0.4":"2026-04-15T04:20:35.479Z"},"bugs":{"url":"https://github.com/stackblogger/link-exists/issues"},"author":{"name":"StackBlogger","email":"jimcute8879@gmail.com","url":"Jameer Khan"},"license":"ISC","homepage":"https://opensource.stackblogger.com/link-exists","keywords":["link-exists","url-exist","url-validator","link-validator","link-check","validator","verify","node.js","typescript"],"repository":{"type":"git","url":"git+https://github.com/stackblogger/link-exists.git"},"description":"A super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.","maintainers":[{"name":"jimcute","email":"jimcute8879@gmail.com"}],"readme":"![npm](https://img.shields.io/npm/v/link-exists?style=flat-square&color=success&logo=npm)\n![npm](https://img.shields.io/npm/dm/link-exists?style=flat-square&color=success&logo=npm)\n![GitHub](https://img.shields.io/github/license/stackblogger/link-exists?style=flat-square&logo=github&color=success)\n\n# link-exists\n\nA super lightweight JavaScript / TypeScript library to check whether a given url is valid and exists or not.\n\n## Installation\n\n```bash\nnpm install link-exists\n```\n\n## Features\n\nA super lightweight library to validate if a given url is valid or not. Some additional features are-\n\n- less than <b>1 kb</b> in size\n- additional configuration to validate as per custom requirement\n- supports node.js latest version\n- TypeScript and JavaScript support\n- built on ES6 modules\n- Jest test cases with <b>100% coverage</b>\n- Promise based result\n\n## Usage\n\n**[Full documentation](https://opensource.stackblogger.com/link-exists/)** — API, config options, behavior notes, and more examples.\n\n### TypeScript\n\n```typescript\nimport { linkExists } from 'link-exists';\n\nawait linkExists('https://stackblogger.com'); // true when any HTTP answer comes back\n// response: true\n\nawait linkExists('www.stackblogger.com'); // false: no protocol in the string by default\n// response: false\n\nawait linkExists('www.stackblogger.com', { ignoreProtocol: true }); // same host, protocol added\n// response: true\n\nawait linkExists('https://example.com', { details: true }); // object, exists follows ok status\n// response: { exists: true, status: 200, url: 'https://example.com/' }\n\nawait linkExists('stackblogger.com', { ignoreProtocol: true }); // allow link with no protocol\n// response: true\n\nawait linkExists('https://example.com', { timeout: 5000 }); // stop after 5 seconds\n// response: true (or false on timeout / error)\n\nawait linkExists('https://example.com', { method: 'GET' }); // use GET not HEAD\n// response: true\n\nawait linkExists('https://example.com', { fallbackToGet: false }); // no GET retry after HEAD\n// response: true\n\nawait linkExists('https://example.com', { details: true, timeout: 8000, method: 'HEAD' }); // mix of options\n// response: { exists: true, status: 200, url: 'https://example.com/' }\n```\n\n### JavaScript\n\n```javascript\nconst { linkExists } = require('link-exists');\n\nawait linkExists('https://stackblogger.com'); // true when any HTTP answer comes back\n// response: true\n\nawait linkExists('www.stackblogger.com'); // false: no protocol in the string by default\n// response: false\n\nawait linkExists('www.stackblogger.com', { ignoreProtocol: true }); // same host, protocol added\n// response: true\n\nawait linkExists('https://example.com', { details: true }); // object, exists follows ok status\n// response: { exists: true, status: 200, url: 'https://example.com/' }\n\nawait linkExists('stackblogger.com', { ignoreProtocol: true }); // allow link with no protocol\n// response: true\n\nawait linkExists('https://example.com', { timeout: 5000 }); // stop after 5 seconds\n// response: true (or false on timeout / error)\n\nawait linkExists('https://example.com', { method: 'GET' }); // use GET not HEAD\n// response: true\n\nawait linkExists('https://example.com', { fallbackToGet: false }); // no GET retry after HEAD\n// response: true\n\nawait linkExists('https://example.com', { details: true, timeout: 8000, method: 'HEAD' }); // mix of options\n// response: { exists: true, status: 200, url: 'https://example.com/' }\n```\n\n### License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","readmeFilename":"README.md"}