# pretty-print-ast

> Formats ASTs as nice readable strings, with colors

## Usage Example

<!-- prettier-ignore -->
```ts
import { formatAst } from "pretty-print-ast";

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

console.log(formatAst(ast));
```

Outputs something like:

![picture of script output](https://user-images.githubusercontent.com/1341513/155487536-8eab1863-e182-45d6-aae3-2e6e0e2d292a.png)

## API Documentation

Please see [api/index.d.ts](https://github.com/suchipi/pretty-print-ast/blob/main/api/index.d.ts) for API documentation.

## License

MIT
