0.0.4 • Published 8 years ago

@loll/href v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

@lol/href

Tiny click handler for single page apps.

Install

npm i @loll/href --save

Usage

The callback will not fire if the link:

  • has an invalid href
  • points to an external resource
  • is a download link
  • is target="_blank"
  • is a mailto: or tel:
import href from '@loll/href'

href(anchor => console.log(anchor.href))

MIT

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago