0.0.4 • Published 9 years ago

hscript v0.0.4

Weekly downloads
10
License
MIT
Repository
github
Last release
9 years ago

hscript

Build Status NPM version Dependency Status License

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

License

MIT