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+.
npm install remark-lint-no-dead-urlsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the rule in a unified pipeline: parse markdown, lint for dead URLs, stringify, and report.
Use import instead of require().
Update Node.js to version 18 or later.
Replace gotOptions with deadOrAliveOptions in configuration.
Use options.from instead of options.gotOptions.prefixUrl.
Set skipOffline: true in options to allow offline runs.
Run `npm install remark-lint-no-dead-urls` and ensure you are using import (ESM).
Change const x = require('...') to import x from '...'.Provide options.from or set file.data.meta.origin and pathname.