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/>
stdin
Read from $ echo "<div>text<div/>" | hscript# -> h('div', ['text'])
$ echo "h('div', ['text'])" | hscript --html# -> <div>text<div/>
Run tests
npm test