hscript
v0.0.4
Published
Cli for converting html to hyperscript and the other way around
Maintainers
Readme
hscript
Cli for converting html to hyperscript and the other way around.
Installation
$ npm install -g hscriptUsage
$ 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