@prayerslayer/prettyprint
v1.0.0
Published
JS value => pretty printed string
Downloads
2
Readme
prettyprint
JSON.stringify with support for non-JSON values (like Symbols)
Installation
npm install @prayerslayer/prettyprint
Usage
ES5:
var pretty = require('@prayerslayer/prettyprint')
console.log(pretty({foo: Symbol()}))
/*
{
"foo": Symbol()
}
*/
ES6:
import pretty from '@prayerslayer/prettyprint'
console.log(pretty({foo: Symbol()}))
/*
{
"foo": Symbol()
}
*/
License
MIT, see LICENSE