Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krasimir/hazard
Producing UI with CSS in JavaScript! The next because-we-can thing :japanese_ogre:
https://github.com/krasimir/hazard
Last synced: 3 days ago
JSON representation
Producing UI with CSS in JavaScript! The next because-we-can thing :japanese_ogre:
- Host: GitHub
- URL: https://github.com/krasimir/hazard
- Owner: krasimir
- License: mit
- Created: 2016-05-15T06:41:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T04:11:00.000Z (over 8 years ago)
- Last Synced: 2024-10-13T16:11:44.326Z (about 1 month ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hazard
Producing UI with CSS in JavaScript! The next because-we-can thing :japanese_ogre:
## Installation
`npm i hazard`
## Simple usage
```js
var hazard = require('hazard')();
var result = hazard.fromJSON({
header[title="My Title"]: {
padding: '10px'
}
});console.log(result.css.text);
/*
.hd1{padding:10px;}
*/console.log(result.html.text);
/**/
```