Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-all-styles

KoryNunn5ISC1.0.0

Get's all css imported in <link> tags, and inlined inside <style> tags, in a target Node.

readme

get-all-styles

Get's all css imported in <link> tags, and inlined inside <style> tags, in a target Node.

Usage

var getAllStyles = require('get-all-styles');

getAllStyles(document.querySelector('.someElement'), function(error, styles){
    ... do something with styles
});