hscript

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i hscript

Weekly Downloads

2

Version

0.0.4

License

MIT

Last publish

Collaborators

  • queckezz