0.0.4 • Published 9 years ago
hscript v0.0.4
hscript
Cli for converting html to hyperscript and the other way around.
Installation
$ npm install -g hscript
Usage
$ hscript index.html
# -> h('div', ['text'])
$ hscript index.js
# -> <div>text<div/>
Read from stdin
$ echo "<div>text<div/>" | hscript
# -> h('div', ['text'])
$ echo "h('div', ['text'])" | hscript --html
# -> <div>text<div/>
Run tests
npm test