Get a list of stylesheets from an HTML document.
npm install list-stylesheets
> Get a list of stylesheets from an HTML document.
Install with npm
```
npm install --save list-stylesheets
`js
var getStylesheetList = require('list-stylesheets');
var data = getStylesheetList(html, options);
console.log(data.html);
console.log(data.hrefs);
`
#### options.applyLinkTags
Type: Boolean true
Default:
Whether to resolve tags and inline the resulting styles.
#### options.removeLinkTags
Type: Boolean true
Default:
Whether to remove the original tags after (possibly) inlining the css from them.
#### options.codeBlocks
Type: Object { EJS: { start: '<%', end: '%>' }, HBS: { start: '{{', end: '}}' } }
Default:
An object where each value has a start and end to specify fenced code blocks that should be ignored during parsing. For example, Handlebars (hbs) templates are HBS: {start: '{{', end: '}}'}. Note that codeBlocks is a dictionary which can contain many different code blocks, so don't do codeBlocks: {...} do codeBlocks.myBlock = {...}`.
Options to passed to cheerio.
The code for this module was originally taken from the Juice library.
MIT © Jonathan Kemp