1.0.1 • Published 2 years ago

pretty-print-ast v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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