linkifier

1.0.2 • Public • Published

linkifier


linkifier

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

It converts HTML tags (like h1, h2, h3, h4, h5 & h6) into links.

Install

$ npm install linkifier --save

Usage

Vanilla

linkifier(document.getElementsByTagName('h2'))

jQuery

$('h2').linkifier()

API

linkifier(, [opts])

element

Required
Type: object

Collection of Node Elements to wrap into links.

opts

class

Type: string
Default: 'deep-link'

A class to attach with the link wrapper.

License

MIT © Kiko Beats

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    4
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i linkifier

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kikobeats