New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

asterisk

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asterisk

CSS docuemnt generator.

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 16 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts