1.0.1 • Published 8 years ago

link-href v1.0.1

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

link-href Build Status

Change a link href in html to where you want

Install

$ npm install --save link-href

Usage

var linkHref = require('link-href');
var tack = linkHref(html, function(href, attr) {
  // return updated url value if you want to change the href
  return href + '/changeurl';
});

console.log(tack.html, tack.link);

API

linkHref(html, evaluate)

html

HTML string that includes link with google font href

evaluate

To evaluate a link which could be updated or not

Return

Return updated html with link information

{
  html: String
  link: []
}

License

MIT © Jimmy Moon

1.0.1

8 years ago

1.0.0

8 years ago