Socket
Socket
Sign inDemoInstall

html-lml

Package Overview
Dependencies
12
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    html-lml

HTML parser extension for the LML package


Version published
Weekly downloads
4
increased by300%
Maintainers
1
Install size
527 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 08 Jan 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc