hazard

0.2.1 • Public • Published

Hazard

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

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>
*/

Package Sidebar

Install

npm i hazard

Weekly Downloads

0

Version

0.2.1

License

MIT

Last publish

Collaborators

  • krasimir