{"library":"remark-lint-no-dead-urls","title":"remark-lint-no-dead-urls","description":"A remark-lint rule that checks if URLs in Markdown files are alive by making HTTP requests, using the dead-or-alive library. Current stable version is 2.0.1 (February 2025), released under the unified collective with active maintenance. It differs from remark-validate-links by checking internet URLs rather than local file paths, and can also verify fragment IDs on web pages. ESM-only since v2, requires Node.js 18+.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-dead-urls"],"cli":null},"imports":["import remarkLintNoDeadUrls from 'remark-lint-no-dead-urls'","import type {Options} from 'remark-lint-no-dead-urls'","import remarkLintNoDeadUrls from 'remark-lint-no-dead-urls'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import remarkLintNoDeadUrls from 'remark-lint-no-dead-urls';\nimport remarkLint from 'remark-lint';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport {read} from 'to-vfile';\nimport {unified} from 'unified';\nimport {reporter} from 'vfile-reporter';\n\nconst file = await read('example.md');\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoDeadUrls, {skipLocalhost: true})\n  .use(remarkStringify)\n  .process(file);\n\nconsole.error(reporter(file));","lang":"typescript","description":"Shows how to use the rule in a unified pipeline: parse markdown, lint for dead URLs, stringify, and report.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}