@jamen/html-to-hyperapp

0.1.0 • Public • Published

html-to-hyperapp

Convert HTML to Hyperapp JSON

Install

npm i html-to-hyperapp

Or use the CLI utility:

npx html-to-hyperapp input.html output.json

Usage

htmlToHyperapp(input, output)

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')
)

html-to-hyperapp [input] [output]

Performs the function over files or stdio.

$ html-to-hyperapp input.html output.json
$ cat input.html | html-to-hyperapp > output.json

Readme

Keywords

none

Package Sidebar

Install

npm i @jamen/html-to-hyperapp

Weekly Downloads

1

Version

0.1.0

License

none

Unpacked Size

3.72 kB

Total Files

5

Last publish

Collaborators

  • jamen