Get a list of stylesheets from an HTML document.
Install with npm
npm install --save list-stylesheets
var getStylesheetList = require('list-stylesheets');
var data = getStylesheetList(html, options);
console.log(data.html);
console.log(data.hrefs);Type: Boolean
Default: true
Whether to resolve <link rel="stylesheet"> tags and inline the resulting styles.
Type: Boolean
Default: true
Whether to remove the original <link rel="stylesheet"> tags after (possibly) inlining the css from them.
Options to passed to cheerio.
The code for this module was originally taken from the Juice library.
MIT © Jonathan Kemp