@dcmox/lexy

    1.0.0 • Public • Published

    lexy

    Lexy is an HTML lexer that can break down an HTML document into a tree-like structure and find parsing errors (unclosed/closed tags that are missing) and suggest hints at what might be wrong.

    Use

    const LexyScan = require('@dcmox/lexy').LexyScan
     
    const lexy = new LexyScan(doc)
    console.log(JSON.stringify(lexy.scan(), null, 2))

    Example output

    LexyScan

    Keywords

    Install

    npm i @dcmox/lexy

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    26.8 kB

    Total Files

    9

    Last publish

    Collaborators

    • moxyscript