roole-compiler

0.6.0 • Public • Published

roole-compiler

Convert CSS AST to CSS string

Example

var parser = require('roole-parser');
var compiler = require('roole-compiler');
 
var ast = parser.parse('body { margin: 0 }');
var str = compiler.compile(ast);
console.log(str);

API

compiler.compile(node, [options]);
  • node - AST generated by roole-parser
  • options - A hash object containing the following options:
    • indent (default: '\t') - Indent string to use in CSS
    • precision (default: 5) - Max number of decimal digits to use in CSS

Readme

Keywords

none

Package Sidebar

Install

npm i roole-compiler

Weekly Downloads

5

Version

0.6.0

License

MIT

Last publish

Collaborators

  • curvedmark