edgejs-parser
TypeScript icon, indicating that this package has built-in type declarations

0.2.14 • Public • Published

EdgeJS Parser

This is a small parser for HTML and EdgeJS.

Built using Chevrotain.

Note: This will built specifically to build a prettier plugin for EdgeJS templates, so may not serve all purposes.

Installation

npm i edgejs-parser

Usage

There is a single export parser that can be used and will return an AST.

import edgeParser from "edgejs-parser";

If you want to see the format of the AST read the visitor.js file.

Contributing

As with most open source projects my time is limited and I do the best I can.

If you spot an issue, feel free to open a Bug and I will get too it when I can, or even better yet feel free to open a PR.

Readme

Keywords

Package Sidebar

Install

npm i edgejs-parser

Weekly Downloads

12,977

Version

0.2.14

License

MIT

Unpacked Size

339 kB

Total Files

6

Last publish

Collaborators

  • sajansharmanz