pretty-immutable
Pretty printing for ImmutableJS
Heavily inspired by (and dependent on) json-stringify-pretty-compact.
Install
npm install pretty-immutable
This library will only work (or really make any sense) if you also have immutable
installed.
Usage
var Immutable = ;var prettyI = ; var bigMap = Immutable; // Use as a formatterconsole; /*Map { "a": List [ 1, 2, 3, 4 ], "b": Map { "blah": Map { "blah": List [ Map { "a": 1 }, Map { "b": 2 }, Map { "c": 3 } ] } }}*/ // Override the built-in inspect() methodprettyI; console; /*Map { "a": List [ 1, 2, 3, 4 ], "b": Map { "blah": Map { "blah": List [ Map { "a": 1 }, Map { "b": 2 }, Map { "c": 3 } ] } }}*/
License
Copyright 2016 Glen Mailer.
MIT Licensed.