Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

jonkemp/href-content

Repository files navigation

Moved

This module has moved and is now available at https://github.com/jonkemp/inline-css/tree/master/packages/href-content. This repository is no longer maintained.

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