0.2.1 • Published 8 years ago

hazard v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Hazard

Producing UI with CSS in JavaScript! The next because-we-can thing :japanese_ogre:

Installation

npm i hazard

Simple usage

var hazard = require('hazard')();
var result = hazard.fromJSON({
  header: {
    padding: '10px'
  }
});

console.log(result.css.text);
/*
.hd1{padding:10px;}
*/

console.log(result.html.text);
/*
<header class="hd1"></header>
*/
0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago