# node-link-injection **Repository Path**: mirrors_jsantell/node-link-injection ## Basic Information - **Project Name**: node-link-injection - **Description**: Parse text for keywords and replace with links for documentation - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README link-injection ====== Parse text for keywords and replace with links for documentation ### How it works `link-injection` parses arbitrary text and replaces all keywords with an anchor link to the keyword's reference. Excellent for creating hyperlinks in documentation to other parts of the documentation and who knows what else. What is supported: * Can parse plain text, or HTML -- will not create an anchor inside of another anchor * Full word matching -- if `Array` is a keyword, it will not transpose `Float32Array` into an anchor ### Installing * `npm install link-injection` ### Methods * `parse( text, map, options )` Parses string `text` replacing instances of `map`'s keys with an anchor with an href to the key's value. ### Options * `caseSensitive` : Whether or not the keyword match should be case-sensitive. (default: `true`) ### Usage ```javascript var inject = require( 'link-inject' ), html = '