{"ava":{"failFast":false,"files":["dist/tests/**/*.js"],"timeout":"1m"},"description":"Verify that all links and resources the page uses are available online.","dependencies":{"@hint/utils-connector-tools":"^1.0.1"},"devDependencies":{"@hint/utils-tests-helpers":"^1.0.0","@types/debug":"0.0.30","@types/node":"8.0.14","ava":"^0.25.0","cpx":"^1.5.0","eslint":"^5.4.0","eslint-plugin-markdown":"^1.0.0-beta.7","eslint-plugin-typescript":"^0.12.0","hint":"^3.2.2","markdownlint-cli":"^0.13.0","npm-link-check":"^2.0.0","npm-run-all":"^4.1.2","nyc":"^12.0.2","rimraf":"^2.6.2","typescript":"^3.0.1","typescript-eslint-parser":"^18.0.0"},"engines":{"node":">=8.0.0"},"files":["dist/src","npm-shrinkwrap.json"],"homepage":"https://webhint.io/","keywords":["hint","webhint","no-broken-links","no-broken-links-hint"],"license":"Apache-2.0","main":"dist/src/hint.js","name":"@hint/hint-no-broken-links","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"hint":"^3.2.2"},"repository":{"type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm run clean && npm-run-all build:*","build-release":"npm run clean && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives","lint:md":"markdownlint --ignore CHANGELOG.md *.md","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc 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":"1.0.3","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-no-broken-links@1.0.3","_npmVersion":"6.4.0","_nodeVersion":"10.4.0","_npmUser":{"name":"alrra","email":"alrraa@gmail.com"},"dist":{"integrity":"sha512-4y8/d15k/7LPjj4YpFrbRXTGLKDzNJIIXOekeb/Y5lH+o+++5OEhrIzfy7aqYVgBKaYY6JjxCD/Bi3WD00Sh8Q==","shasum":"52f918deac1f00b80595b116722116d650a9da87","tarball":"http://registry-npm.ywwl.com/@hint/hint-no-broken-links/download/@hint/hint-no-broken-links-1.0.3.tgz","fileCount":7,"unpackedSize":207898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfD0TCRA9TVsSAnZWagAA2gQP+wf/nxciaePgVdDs68fJ\nuKTboCI60pzLzGU/Lo4Ga3hv70MboIqfcDQEV13Fs2VAXL3t+0GZyDd/oGcF\n5jfVo/27ljJHpBuV2KEi6hOwTcZJ0fG0WV89VM8axfsz7y9YPzQogNRN9JBe\n9P8KePwPETRn4yHInaR+2vPlkmE1+ChOL8Tp+yj05d0zycBE0MKW/zrgRAJp\nZjEXyCRfkOXFtpivqTVO6zIDD7VbhYDzg0fQZCfHsPNevl0oH5lDruWBN8RW\nksizNU3nM13dLvrI7GTeRVmHGHrOINHrAV0sRiqxf1PVPCulSBn9vYwsS239\nOduUrQh5t/722Uo+hpA9PcnR5EhxlZMPV8BWem8Sc0Jg2mN1ozVKiizX8oQu\nCFRv+dwCRlzDroJggCl/TWjrKgrY8kVfRyimqjfYWyYvyx0+ZtaTrahk7dJ4\nfLAYI9Y89NbbZd/YfUA4F0Msnilxh4xr92FDHNOZsRmcoU7uwdTupHH4Gsrl\nruvsNaD1JHY0EOBiZraxugkyjEU4332JnqBdm8f0q5dgfsDcIDO57xHGNGJk\nLYE71o/zCWjC7Y6dHLU6bXvSDXNs6RGr/oKam4tKX34DHWREHPWlTtaozvAA\niohbs82oOCySzwL/So21JsKaIE0QSjFu+2d2c5T/YwkK26mZK2u5y8HsF25M\nUucr\r\n=A99l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRS7/z5HqtGzXb/Amye3fT7JEyCIKDoXdcxX6dsgzdFAIgQAgfFzER3b10fMmTyUVzXg/L5G1ZS6lpobrbe6++tF0="}],"size":55394,"noattachment":false,"key":"/@hint/hint-no-broken-links/-/@hint/hint-no-broken-links-1.0.3.tgz"},"maintainers":[{"name":"alrra","email":"alrraa@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-no-broken-links_1.0.3_1534868754490_0.3224180463630293"},"_hasShrinkwrap":true,"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":1534868754564,"_cnpm_publish_time":1534868754564,"dist-tags":{"latest":"4.2.27"}}