UNPKG

hscript

Version:

Cli for converting html to hyperscript and the other way around

20 lines (14 loc) 291 B
Examples: Cli: html -> hyperscript: hscript index.html hyperscript -> html: hscript index.js Stdin: html -> hyperscript echo '<div>text<div/>' | hscript hyperscript -> html echo 'h("div", ["text"])' | hscript --html Options: --help, -h Show help