@candlelib/css
v0.3.24
Published
CSS Parsing & Editing Tools
Downloads
22
Readme
CandleLibrary CSS is a general purpose CSS parser, editor, and generator tool.
Install
NPM
npm install --save @candlelib/css
Usage
note: This script uses ES2015 module syntax, and has the extension .mjs. To include this script in a project, you may need to use the node flag
--experimental-modules
; or, use a bundler that supports ES modules, such as rollup.
import css from "@candlelib/css";
css(`
div, a.header, h1 > a {
color: red;
height: 100em;
}
`).then(parsed_css => {
parser_css.rules;
});