@suchipi/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

/@suchipi/pretty-print-ast/

    Package Sidebar

    Install

    npm i @suchipi/pretty-print-ast

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • suchipi