@the-/ast

AST (abstract syntax tree) parser

Usage no npm install needed!

<script type="module">
  import theAst from 'https://cdn.skypack.dev/@the-/ast';
</script>

README

@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