@the-/ast

16.2.7 • Public • Published

@the-/ast

npm Version

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

See API Guide for more detail

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/ast

Weekly Downloads

9

Version

16.2.7

License

MIT

Unpacked Size

214 kB

Total Files

28

Last publish

Collaborators

  • okunishinishi