href-content

Get content from link tags in an HTML document.

Usage no npm install needed!

<script type="module">
  import hrefContent from 'https://cdn.skypack.dev/href-content';
</script>

README

href-content Build Status Coverage Status

NPM

Get content from link tags in an HTML document.

Install

Install with npm

npm install --save href-content

Usage

var getHrefContent = require('href-content');

getHrefContent('path/to/css', 'file://path/to/html', function (err, css) {
    console.log(css);
});

Credit

The code for this module was originally taken from the Juice library.

License

MIT