Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xierenyuan/ast-demo
ast 实践
https://github.com/xierenyuan/ast-demo
Last synced: about 1 month ago
JSON representation
ast 实践
- Host: GitHub
- URL: https://github.com/xierenyuan/ast-demo
- Owner: xierenyuan
- Created: 2017-06-04T13:38:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-04T13:43:48.000Z (over 7 years ago)
- Last Synced: 2024-08-03T09:09:43.214Z (4 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - ast-demo
README
# 解析 一个js 包含 ng 的 代码 并读出其中的特定部分 单独生成文件夹 如 controller
## 使用
``` js
import parse from 'bq-js-ast'parse({
src: path.join(__dirname, './test.js'),
dist: path.join(__dirname, './static')
})```
> see `https://astexplorer.net/`