# tiny_pretty

[![Crates.io](https://img.shields.io/crates/v/tiny_pretty?style=flat-square)](https://crates.io/crates/tiny_pretty)
[![docs.rs](https://img.shields.io/docsrs/tiny_pretty?style=flat-square)](https://docs.rs/tiny_pretty)

Tiny implementation of [Wadler-style](http://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf)
pretty printing algorithm, with some advanced options like controlling line break and indentation kind.

For tutorial and API documentation, please refer to [docs.rs](https://docs.rs/tiny_pretty).

## Used By

- [wasm-language-tools](https://github.com/g-plane/wasm-language-tools)
- [Malva](https://github.com/g-plane/malva)
- [markup_fmt](https://github.com/g-plane/markup_fmt)
- [Pretty YAML](https://github.com/g-plane/pretty_yaml)
- [Pretty GraphQL](https://github.com/g-plane/pretty_graphql)
- [Pretty Jinja](https://github.com/g-plane/pretty_jinja)

## Credits

- [SML implementation](https://github.com/kfl/wpp)
- [pretty.rs](https://github.com/Marwes/pretty.rs)

## License

MIT License

Copyright (c) 2023-present Pig Fang
