awesome_print

Version, currently 0.1.173 versions

github.com/evandrojr/awesome_print.cr

It dreams about becoming ruby's awesome_print for crystal-lang, under light development.

13 stars
0 dependents
License: MIT

Nothing has been indexed for 0.1.17 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  awesome_print:
    github: evandrojr/awesome_print.cr
    version: ~> 0.1.17

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.17. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

[![Travis CI Build Status](https://travis-ci.org/evandrojr/awesome_print.cr.svg)](https://travis-ci.org/evandrojr/awesome_print.cr)

# awesome_print

It dreams about becoming [awesome_print](https://github.com/awesome-print/awesome_print) for crystal-lang.

```
ap some_var
```

## Benchmark

![alt Benchmark](https://raw.githubusercontent.com/evandrojr/awesome_print.cr/master/benchmark.png)


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

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  awesome_print:
    github: evandrojr/awesome_print.cr
```

## Usage

```crystal
require "awesome_print"
```

To check the content of a variable use:
```
ap some_var
```


## Contributing

1. Fork it ( https://github.com/evandrojr/awesome_print.cr/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request

## Contributors

- [evandrojr](https://github.com/evandrojr) Evandro Junior - creator, maintainer
- [hugoabonizio](https://github.com/hugoabonizio) Hugo Abonizio - developer, major helper in quality assurance