@candlelib/css
TypeScript icon, indicating that this package has built-in type declarations

0.3.24 • Public • Published

CandleLibrary CSS

CSS AST compiler & editing tools

npm (tag)

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;
});

Readme

Keywords

Package Sidebar

Install

npm i @candlelib/css

Weekly Downloads

2

Version

0.3.24

License

MIT

Unpacked Size

327 kB

Total Files

84

Last publish

Collaborators

  • galactrax