link-types

3.0.0 • Public • Published

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 }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    136
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    136
  • 2.0.0
    2
  • 1.1.0
    19,745
  • 1.0.0
    1

Package Sidebar

Install

npm i link-types

Weekly Downloads

11,509

Version

3.0.0

License

MIT

Unpacked Size

4.79 kB

Total Files

6

Last publish

Collaborators

  • stevenvachon