Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spotandjake/grainprint
A better grain printer
https://github.com/spotandjake/grainprint
Last synced: 23 days ago
JSON representation
A better grain printer
- Host: GitHub
- URL: https://github.com/spotandjake/grainprint
- Owner: spotandjake
- License: mit
- Created: 2023-07-18T04:06:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-30T03:47:32.000Z (3 months ago)
- Last Synced: 2024-07-30T07:39:35.526Z (3 months ago)
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# GrainPrint
A beautified print function for grain, similar to the original grain print it works on any type.## Features
* Colored Printing
* Line Breaks
* Custom Byte Limit
* Custom Depth Limits
* Custom Ident Amount## Note
Grain v0.6 has added cycle support to the native `print` function, this library does not currently support cycle detection.## TODO
* Make A PrintTree, This allows for faster support of line breaks and more complex line breaking mechanics surrounding nesting
* Detect support for colors
* Create Fall back to basic ascii colors over true color
* Add a compact mode
* Cycles Support
* Simply Package by separating type logic from printing (This would give an opportunity to improve type safety)
* We could have this be a separate package because it could be pretty useful
* I'm picturing a serialization package, that converts the adts, enums and records over to a data representation
* Check For Memory Leaks
* Remove dependencies on stdlib and Pervasives