node-json-color-stringify
Add a colorized version of JSON.stringify
to JSON for console (Compatible with Windows and UNIX like systems).
Features
node-json-color-stringify
offers an alternative method to replace JSON.stringify method by a new one that highlights JSON content for console output.
Install
npm install --save node-json-color-stringify
Usage
Colorized version is available as JSON.colorStringify
:
;console;
Import node-json-color-stringify
and use JSON.stringify
as usual for non-colorized object output:
;console;
Replace array or function are also available:
;console;console;
Contributing
Contributions welcome; Please submit all pull requests against the master branch. If your pull request contains JavaScript patches or features, you should include relevant unit tests.
Author
René BIGOT