@originjs/vue-sfc-ast-parser

A ast parser for vue sfc
4,130
Install
npm install @originjs/vue-sfc-ast-parser
Latest Version:1.0.2
License:MulanPSL2
Last Updated:Apr 11, 2022
Links: npm
Maintainer: flyfishzy

vue-sfc-ast-parser

An AST parser for vue-sfc. This is extracted from vue-codemod

Template parser

The AST parser for template part of vue-sfc is vue-eslint-parser.

Script parser

The AST parser for script part of vue-sfc is jscodeshift. Actually it's using babel parser.

Style parser

There is no valid AST parser for style part yet. Contributions are welcome. :-)

Related Packages

vue-parser

Get contents from tags in .vue files (using AST tree).

5,013,612 20
wangsongc-test

A ast parser for vue sfc

542
obix-compiler-parser

The .obix VueTS parser: the OFFICIAL Vue SFC parser behind parseObix / parseVueR...

247 0
oxlint-vue-sfc-harness

Shared template-AST harness for oxlint JS-plugin rules that need to read Vue SFC...

6,795 0
tree-sitter-vue

Vue grammar for tree-sitter

69,751 89

Version History

Version Released License
1.0.2 MulanPSL2
1.0.1 MulanPSL2
1.0.0 MulanPSL2
Pre-releases (1)
Version Released License
1.0.0-beta0 MulanPSL2