Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cli for converting html to hyperscript and the other way around.

License

queckezz/hscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cli for converting html to hyperscript and the other way around.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published