0.8.1 • Published 5 years ago

html-lml v0.8.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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(source: string, 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