[go: up one dir, main page]

Skip to content

Parse an HTML attribute value containing link types.

License

Notifications You must be signed in to change notification settings

stevenvachon/link-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

link-types NPM Version Build Status

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 = require('link-types');

linkTypes('nofollow');
//-> ['nofollow']

linkTypes(' tag  NOFOLLOW ');
//-> ['tag', 'nofollow']

linkTypes.map(' tag   NOFOLLOW ');
//-> { tag:true, nofollow:true }

About

Parse an HTML attribute value containing link types.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published