{"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":"^3.0.0"},"devDependencies":{"@hint/utils-tests-helpers":"^3.0.0","@types/debug":"4.1.2","ava":"^1.2.1","cpx":"^1.5.0","eslint":"^5.14.1","eslint-plugin-markdown":"^1.0.0","@typescript-eslint/eslint-plugin":"^1.4.0","hint":"^4.4.1","npm-link-check":"^3.0.0","npm-run-all":"^4.1.5","nyc":"^13.3.0","rimraf":"^2.6.3","typescript":"^3.3.3333","@typescript-eslint/parser":"1.4.0"},"engines":{"node":">=8.0.0"},"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":"^4.4.1"},"repository":{"type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"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 -b","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":"node ../../scripts/lint-markdown.js","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only","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":"3.0.1","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-no-broken-links@3.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"molant","email":"amolleda@gmail.com"},"dist":{"integrity":"sha512-N4ouLC2K8KXsm556i5Ryx3CgNudWN1qky4K0b8An7Z0iP1OADi7cx19+8c1RNYzzyDLxxXHo+rvD4UqGZwlofA==","shasum":"e8db79596f43d7754fb0f0e9a53654728f0762a6","tarball":"http://registry-npm.ywwl.com/@hint/hint-no-broken-links/download/@hint/hint-no-broken-links-3.0.1.tgz","fileCount":10,"unpackedSize":29808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccDT+CRA9TVsSAnZWagAA9BkP/iHvSgCeHpLdKbzyHLm3\nzoxqcsfm4StOK7qEjnMT+x20x2n621ljy19BA6ZJdEL/6bnNoSbZjI0PPWkp\nD1u7mH7GFG5RtQBVsX09GuElTx4pT92n5GrfW2nRGPD1QYKuquYMqIx6TSHh\nRXAANJQZQyt5mJlLEgFpBSf6oJ/TacVyXnrMEY2X3kMaty79drbwlXUeZ5km\nxALaw/AmZb8MUzh+7AuvjdYdbdMqWS8OCAJuneXDMga3CeRGRW2OnCV8Lt3Y\nT5O5a72UWTW4kAhBT1GQ+HuDxpYyh2wEMf6ylyXINxesCLH43OoEO8RU/YpT\n+v924Edqd/0DMnEdRZMwvTmcTfvQD5toIFKWvibnWq6Z1t3z3ekp1qt+1Bqm\n2ewVpSErOPnrsvZd8cHVMED1bQ5KRyiCHzsJ/AquwmFE3K9AufzpuxKu6NfQ\nR8fljMA5r73v4NGyBMW6CPx0y1bnQCfURGCeCE7Hs1rusEpgsISWwaT1889x\nin+Upg3tqGsS9VenxZ5zvyWVMSOqlWGV53CRwJcbsC9MUIviysi9VCArieCg\nq/2ahcegjLPa6/H0Qb3ohTlsImNK239obfAIxy13HNlMoglOQdYUcKtFU1QC\n3Gd+6JXFszMQ2eIHxbfethSk1/7Uvj+F83rn+i+gM+UIM1g3rqSOfMQWopCG\nJkXk\r\n=igLX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYiRr84Iu5PCSo96sNS6PM4GXu+krpa49Fk/Sw7YgCkgIhAK/oeY68TARr3wNTWfQ8ncNeZgNTOP+bTnFSsrukga5e"}],"size":10112,"noattachment":false,"key":"/@hint/hint-no-broken-links/-/@hint/hint-no-broken-links-3.0.1.tgz"},"maintainers":[{"email":"antross@gmail.com","name":"antross"},{"email":"amolleda@gmail.com","name":"molant"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-no-broken-links_3.0.1_1550857469831_0.881856940582809"},"_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":1550857469987,"_cnpm_publish_time":1550857469987,"dist-tags":{"latest":"4.2.27"}}