It dreams about becoming awesome_print for crystal-lang.
ap some_var
It supports Integers, Floats, String, Char, Array, Range, Symbol and Hash.
Formated array example:
ap [100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115]
(output)
[100, 101, 102, 103, 104, 105, 106,
107, 108, 109, 110, 111, 112, 113,
114, 115]
2018-05-10: Added colors for some data types and support for Symbol
Add this to your application's shard.yml
:
dependencies:
awesome_print:
github: evandrojr/awesome_print.cr
require "awesome_print"
To check the content of a variable use:
ap some_var
- Fork it ( https://github.com/evandrojr/awesome_print.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- evandrojr Evandro Junior - creator, maintainer
- hugoabonizio Hugo Abonizio - developer, major helper in quality assurance