pretty-print-ast
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

pretty-print-ast

Formats ASTs as nice readable strings, with colors

Usage Example

import { formatAst } from "pretty-print-ast";

const ast = /* get an AST from whatever */

console.log(formatAst(ast));

Outputs something like:

picture of script output

API Documentation

Please see api/index.d.ts for API documentation.

License

MIT

Package Sidebar

Install

npm i pretty-print-ast

Weekly Downloads

22

Version

1.0.1

License

MIT

Unpacked Size

9.69 kB

Total Files

6

Last publish

Collaborators

  • suchipi