0.0.4 • Published 8 years ago
@loll/href v0.0.4
@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:
ortel:
import href from '@loll/href'
href(anchor => console.log(anchor.href))
MIT