asterisk

CSS docuemnt generator.

npm install asterisk
9 downloads in the last week
46 downloads in the last month

node-asterisk Build Status

About

CSS document generator.

Usage

Prepare

At first, add comment to css file.

/*
<button class='btn btn-primary'>Primary Button</button>

```` ```html `

``` */ .btn { display: inline-block; width: 200px; border-radius: 5px; font-size: 24px; line-height: 1.5; } .btn.btn-primary { color: #fff; background-color: #3276b1; border-color: #285e8e; }


### Generate

You can use this from cli.

```sh
$ npm install -g asterisk
$ asterisk sample.css

From JavaScript code, require this simply.

var Asterisk = require('asterisk');
var asterisk = new Asterisk('sample.css');
asterisk.parse();

Resources

License

MIT.

npm loves you