Convert HTML to Hyperapp JSON
npm i @jamen/html-to-hyperapp
Or use the CLI utility:
npx @jamen/html-to-hyperapp input.html output.json
Takes an input stream and output stream, where HTML comes from the input and JSON is written to the output.
htmlToHyperapp(
fs.createReadStream('./input.html'),
fs.createWriteStream('./output.json')
)
Performs the function over files or stdio.
$ html-to-hyperapp input.html output.json
$ cat input.html | html-to-hyperapp > output.json