Socket
Book a DemoInstallSign in
Socket

html-to-alkali

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-to-alkali

This tool converts HTML into JavaScript with [Alkali API sintax](https://github.com/kriszyp/alkali).

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 18 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts