Skip to content

Convert HTML to Hyperapp JSON in the browser

License

Notifications You must be signed in to change notification settings

tomhorwood/html-to-hyperapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-to-hyperapp

Convert HTML to Hyperapp JSON

Install

npm i @jamen/html-to-hyperapp

Or use the CLI utility:

npx @jamen/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

About

Convert HTML to Hyperapp JSON in the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%