{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"description":"Verify that all links and resources the page uses are available online.","dependencies":{"@hint/utils-connector-tools":"^4.0.36","@hint/utils-debug":"^1.0.10","@hint/utils-i18n":"^1.0.13","@hint/utils-network":"^1.0.21","@hint/utils-types":"^1.2.0"},"devDependencies":{"@hint/utils-create-server":"^3.4.21","@hint/utils-dom":"^2.2.0","@hint/utils-tests-helpers":"^6.5.1","@types/node":"^17.0.14","@types/request":"^2.48.8","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","ava":"^4.0.1","copyfiles":"^2.4.1","eslint":"^7.32.0","eslint-plugin-markdown":"^2.2.1","npm-run-all":"^4.1.5","nyc":"^15.1.0","rimraf":"^3.0.2","typescript":"^4.5.5"},"homepage":"https://webhint.io/","keywords":["hint","no-broken-links","no-broken-links-hint","webhint"],"license":"Apache-2.0","main":"dist/src/hint.js","name":"@hint/hint-no-broken-links","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"hint":"^7.0.0"},"repository":{"directory":"packages/hint-no-broken-links","type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm run i18n && npm-run-all build:*","build-release":"npm run clean && npm run i18n && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"copyfiles \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","i18n":"node ../../scripts/create-i18n.js","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext .js,.md,.ts --ignore-path ../../.eslintignore","lint:dependencies":"node ../../scripts/lint-dependencies.js","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run i18n && npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run i18n && npm run lint && npm run build-release && ava","init":"npm install && npm run build","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:assets":"npm run build:assets -- -w --no-initial","watch:test":"ava --watch","watch:ts":"npm run build:ts -- --watch"},"version":"4.2.21","types":"./dist/src/hint.d.ts","gitHead":"3747703aad67205d4aaac4b74e7f78ed86402c0d","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-no-broken-links@4.2.21","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-nGUAiz0tVJTQHYJJAOB69nQP5AhKkfEMyje1pYKKVHdevqH2H7UmCbNCBBeOEzT8p8YHAlWr0uS6EF1XH6wFjg==","shasum":"e77584c4871aa5540c00f5c242c04e46bbb38f97","tarball":"http://registry-npm.ywwl.com/@hint/hint-no-broken-links/download/@hint/hint-no-broken-links-4.2.21.tgz","fileCount":13,"unpackedSize":26889,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpDa39E0JwBc3/pKpK0z53i5Np7yd18J4+yaYtTqldnAiEA6VP8J9NlwLdZcj/kYo8ZxG7jfXqtYwjSRtTqby8LlvA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2yvkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTng/7Bgqn4FpXUD0SU1DrvcBXyHw1ZkPwuIQ9wrKgJX7iUxVvodbV\r\nJAg6cnFHVY1zDJ+eOvdqSradr5V08/9TcNS07GyE1/o4kaR+FWoZBsoYY4Yk\r\nLRtuDkCTEa/lvDgdtuNtcEF98eemAEJzizPXlRvTbPED5YkjjMornjzjJ57X\r\nfSG4qOHN4ZS4nmN31chIfxv+uRmvMZMEB0TVF3ExDjrrhhHBNPjxiuNjL3NW\r\nDKsqL1mv7IGC3R4Xkgj5ShfUXY4skSoTQF61jmb3s6/RdUAB1d7fAMtWf19B\r\nUOO4ae3BdYrlVoF7J7sUme46QMxvMYVIL2JFw+Gu6uotyBjdvtVGvRfb/V1/\r\ngZqI7eoFkvHlYLp5DKA9kQv63QmmfW8YpRFd6kkJxS4N9gjx9lxJHWctvC23\r\nNw0f9CHHUBnh/W5uNlwFIzDSGAoP6mlNgJCTakUZKxjR2iSmMBPNCYlG8AAv\r\nxKY2mDcr0ZIegsGT6MvMNe4TN8JvTUq1VmseCufGffrTTocrXn9/mdhaGU3P\r\ndeLno4HX20CTZtxpGRrbwih3UJBS1/9h6yOSA6O4zC2K65fK+lJQeWHn3EfB\r\nsKzhyHkScdXRsE6T4w0XDmKh0X3qch7vPvHzPwrs8cor2jONY9AI7Q7evvv/\r\n7Dzrshja179OhT2dvYx3I5GcXMqQ9M4rPHE=\r\n=vxf1\r\n-----END PGP SIGNATURE-----\r\n","size":8923,"noattachment":false,"key":"/@hint/hint-no-broken-links/-/@hint/hint-no-broken-links-4.2.21.tgz"},"_npmUser":{"name":"vidorteg","email":"vidorteg@microsoft.com"},"directories":{},"maintainers":[{"name":"leotlee","email":"leolee@microsoft.com"},{"name":"vidorteg","email":"vidorteg@microsoft.com"},{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-no-broken-links_4.2.21_1658530787887_0.5105564504027673"},"_hasShrinkwrap":false,"readme":"# No broken links (`broken-links`)\n\nThis hint checks and reports if any links in your page are broken.\nThis includes anchor tag `href` value, image `src` value,\nscript `src` value, video `src` value etc.\n\n## Why is this important?\n\nBroken links gives your user a bad user experience.\n\n## What does the hint check?\n\nThis hint gets executed on all the below elements.\n\n1. `img` - checks `src` and `srcset` attribute values\n2. `script`- checks for `src` attribute value\n3. `anchor` - checks for `href` attribute value\n4. `audio` - checks for `src` attribute value\n5. `video` - checks for `src` and `poster` attribute values\n6. `source` - checks for `src` attribute value\n7. `object` - checks for `data` value attribute value\n8. `link` - checks for `src` attribute value\n9. `track` - checks for `src` attribute value\n\nIf the response status of the resource link is either `404` or `410`\nor `500` or `503`, the URL will be flagged as a broken link.\n\n## Can the hint be configured?\n\nYou can change the HTTP method to make the requests (`HEAD`, `GET`,\netc.). To do so, you need to configure the property `method` in your\nconfiguration [`.hintrc`][hintrc] file:\n\n```json\n{\n    \"connector\": {...},\n    \"formatters\": [...],\n    \"hints\": {\n        \"no-broken-links\": [\"error\", {\n            \"method\": \"GET|HEAD\"\n        }],\n        ...\n    },\n    ...\n}\n```\n\nBy default, this hint will use the HTTP `GET` method to request\nthe URLs.\n\n### Examples that **trigger** the hint\n\n#### Absolute URL\n\n`<a href=\"https://example.com/404\">Register</a>`\n\n`<img src=\"https://example.com/image.png\" alt=\"logo\">`\n\n#### Relative URL\n\n`<a href=\"/page-does-not-exist\">Profile</a>`\n\n`<img src=\"/image_does_not_exist.png\" alt=\"logo\">`\n\n### Examples that **pass** the hint\n\nURLs which return 200 OK will pass this hint.\n\nURLs requested via `<link rel=\"dns-prefetch\">` or `<link rel=\"preconnect\">`\n[resource hints](https://www.w3.org/TR/resource-hints/#resource-hints) will\npass this hint if the request succeeds, regardless of status code.\n\n## How to use this hint?\n\nThis package is installed automatically by webhint:\n\n```bash\nnpm install hint --save-dev\n```\n\nTo use it, activate it via the [`.hintrc`][hintrc] configuration file:\n\n```json\n{\n    \"connector\": {...},\n    \"formatters\": [...],\n    \"hints\": {\n        \"no-broken-links\": \"error\",\n        ...\n    },\n    \"parsers\": [...],\n    ...\n}\n```\n\n**Note**: The recommended way of running webhint is as a `devDependency` of\nyour project.\n\n<!-- Link labels: -->\n\n[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/\n","publish_time":1658530788056,"_cnpm_publish_time":1658530788056,"dist-tags":{"latest":"4.2.27"}}