link-types
Parse an HTML attribute value containing link types.
Note: this library is not responsible for parsing any HTML.
Installation
Node.js >= 8
is required. To install, type this at the command line:
npm install link-types
Usage
const linkTypes = ; ;//-> ['nofollow'] ;//-> ['tag', 'nofollow'] linkTypes;//-> { tag:true, nofollow:true }