Skip to content

Commit

Permalink
add a note about pretty-format
Browse files Browse the repository at this point in the history
  • Loading branch information
queckezz committed Feb 17, 2017
1 parent ddd0052 commit 2b56739
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Objects deeper than `depth` will get collapsed and hide their sub properties.
You can tweak the color mapping by the following tokens:

* **punctuation** - The characters sorrounding your data: `:` and `"`
* **literal** - Either `true`, `false` or `null`
* **literal** - Either `true`, `false`, `null` or `undefined`
* **property**
* **string**
* **number**
Expand Down Expand Up @@ -95,6 +95,12 @@ console.log(customFormat({ hello: 1.0 }))

The amount of whitespace after the object gets displayed.

## Similar packages

_(Because package discovery is hard)_

* [`pretty-format`](https://github.com/facebook/jest/tree/master/packages/pretty-format) by @thejameskyle for additional ES6 type support (WeakMap, WeakSet, Symbol etc.) and more consistent output.

## Author

**fmt-obj** © [Fabian Eichenberger](https://github.com/queckezz), Released under the [MIT](./license) License.<br>
Expand Down

0 comments on commit 2b56739

Please sign in to comment.