@the-/ast
AST (abstract syntax tree) parser
Installation
$ npm install @the-/ast --save
Usage
'use strict'
const { parse } = require('@the-/ast')
async function tryExample() {
const ast = parse('const a = 1 + 2')
console.log(ast) // -> AST Tree object
}
tryExample().catch((err) => console.error(err))
API Guide
- global
- module:@the-/ast
- module
See API Guide for more detail
License
This software is released under the MIT License.