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

hazard

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hazard

Producing UI with CSS in JavaScript

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

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

Keywords

css

FAQs

Package last updated on 28 May 2016

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