asterisk
CSS docuemnt generator.
Last updated 5 years ago by 1000ch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install asterisk 
SYNC missed versions from official npm registry.

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 ````
<button class='btn btn-primary'>Primary Button</button>
```` ``` ````
*/
.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.

$ 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.

Current Tags

  • 0.5.1                                ...           latest (5 years ago)

9 Versions

  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           6 years ago
  • 0.3.2                                ...           6 years ago
  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.3                                ...           6 years ago
  • 0.2.2                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 13
Dependencies (11)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |