html-to-alkali
v1.0.1
Published
This tool converts HTML into JavaScript with [Alkali API sintax](https://github.com/kriszyp/alkali).
Downloads
4
Readme
HTML to Alkali API converter tool
This tool converts HTML into JavaScript with Alkali API sintax.
For example:
<div>
<span>Hello</span>
<div>
<span class='inner-span'>World</span>
</div>
</div>
is converted to:
Div([
Span('', 'Hello'),
Div([
Span('.inner-span', 'World')
])
])
How to use:
You can use it online here.
Testing:
$ npm install
$ npm test