html-lml
TypeScript icon, indicating that this package has built-in type declarations

0.8.1 • Public • Published

HTML-LML

Converts HTML to LML or an AST format

// convert HTML to LML
const parseHTML = require('lml').parseHTML;
 
parseHTML(htmlString).toLML();

Full signiture:

parseHTML(sourcestring, parseConfig?: ParseConfig) => IParser

See the lml documentation for details

CLI

There is a dedicated command line tool for LML: lml-cli Install that and this package globally to allow for HTML parsing on command line:

npm install --global html-lml
npm install --global lml-cli
lml --to lml source.html

/html-lml/

    Package Sidebar

    Install

    npm i html-lml

    Homepage

    lml-dom.org/

    Weekly Downloads

    0

    Version

    0.8.1

    License

    MIT

    Unpacked Size

    8.59 kB

    Total Files

    7

    Last publish

    Collaborators

    • gvarsanyi