Registry / testing / awesome-readme-lint-double-link

awesome-readme-lint-double-link

JSON →
library0.0.4jsnpmunverified

A lint tool for awesome README files that detects duplicate links (same URL appearing more than once). Version 0.0.4, stable but minimal release cadence. Differentiates from other markdown link linters by specifically targeting duplicate links in awesome-style lists. Supports Node >=10.

npm install awesome-readme-lint-double-link
INSTALL
IMPORT
SIG · AWESOME-README-LIN
A
awesome-readme-lint-double-link
testingjavascriptv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

awesomeReadmeLintLink
const awesomeReadmeLintLink = require('awesome-readme-lint-double-link');
import awesomeReadmeLintLink from 'awesome-readme-lint-double-link';
Package is CommonJS only; no default ESM export. Use require().
awesomeReadmeLintLink (default export)
const awesomeReadmeLintLink = require('awesome-readme-lint-double-link').default || require('awesome-readme-lint-double-link');
No named exports. The module exports the function directly via module.exports = ...
TypeScript usage
import awesomeReadmeLintLink = require('awesome-readme-lint-double-link');
import awesomeReadmeLintLink from 'awesome-readme-lint-double-link';
For TypeScript with esModuleInterop, use import = require. Package does not ship types.

Lint an awesome README string for duplicate links using CommonJS require.

const awesomeReadmeLintLink = require('awesome-readme-lint-double-link'); const options = { /* e.g., verbose: true */ }; const md = ` # awesome you project ## Level 1 ### Level 1.1 *Description leve 1.1* - [text link 1](https://url-link-1) - A description link 1 - [text link 2](https://url-link-2) - A description link 2 - [text link 1](https://url-link-1) - A description link 3 `; try { awesomeReadmeLintLink(md, options); console.log('No duplicate links found.'); } catch (err) { console.error(err.message); }
Debug
Known issues
deprecatedThe package has not been updated since 2019 and has very low usage.
fix
Consider using more maintained alternatives like markdown-link-check or awesome-lint.
affects: >=0.0.0
gotchaOnly checks for exact URL duplicates, not case-sensitive or trailing slash variations.
fix
Normalize URLs before passing to the function if needed.
affects: >=0.0.0
gotchaThe function throws an error on duplicate links, not just logs a warning.
fix
Wrap call in try/catch to handle duplicate detection gracefully.
affects: >=0.0.0
Errors
Common errors & fixes
Error: duplicate links found:
The markdown contains duplicate URLs and the function throws an error.
fix
Remove duplicate links from your markdown or catch the error.
Cannot find module 'awesome-readme-lint-double-link'
The package is not installed or not in node_modules.
fix
Run 'npm install awesome-readme-lint-double-link' in your project directory.
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
awesome-readme-lint-double-link — npm install awesome-readme-lint-double-link · libregistry