AST-
AST- copied to clipboard
收集业界AST解析相关实现,含:HTML/JS/CSS/JSON/MARKDOWN
AST业界实现收集整理
HTML
htmlparser3
介绍 基于htmlparser2,支持JSX语法解析的html parser。
文档 https://github.com/abell123456/htmlparser3
parse5
介绍 HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.
文档 http://inikulin.github.io/parse5/
cheerio
介绍 Tiny, fast, and elegant implementation of core jQuery designed specifically for the server.
文档 https://cheerio.js.org/
htmlparser2
介绍 Fast & forgiving HTML/XML/RSS parser.
文档 https://github.com/fb55/htmlparser2
html-minifier
介绍 Highly configurable, well-tested, JavaScript-based HTML minifier.
文档 https://github.com/kangax/html-minifier
htmlparser
介绍 Forgiving HTML/XML/RSS Parser in JS for both Node and Browsers.
文档 https://github.com/tautologistics/node-htmlparser
sax
介绍 An evented streaming XML parser in JavaScript.
文档 https://github.com/isaacs/sax-js
xmldom
介绍 A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).
文档 https://github.com/jindw/xmldom
domino
介绍 Server-side DOM implementation based on Mozilla's dom.js.
文档 https://github.com/fgnass/domino
JavaScript
babylon
介绍 A JavaScript parser.
文档 https://babeljs.io/
esprima
介绍 ECMAScript parsing infrastructure for multipurpose analysis
文档 http://esprima.org/
espree
介绍 An Esprima-compatible JavaScript parser built on Acorn
文档 https://github.com/eslint/espree
acorn
介绍 A tiny, fast JavaScript parser, written completely in JavaScript.
文档 github.com/ternjs/acorn
recast
介绍 JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator.
文档 https://github.com/benjamn/recast
CSS
esquery
介绍 ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system.
文档 http://estools.github.io/esquery/
icss-utils
介绍 ICSS utils for postcss ast.
文档 https://github.com/css-modules/icss-utils
css-tree
介绍 Fast detailed CSS parser.
文档 https://csstree.github.io/docs/
markdown
marked
介绍 A markdown parser built for speed.
文档 https://github.com/chjj/marked
markdown
介绍 A sensible Markdown parser for javascript.
文档 github.com/evilstreak/markdown-js
JSON
json3
介绍 A modern JSON implementation compatible with nearly all JavaScript platforms.
文档 https://bestiejs.github.io/json3/