stringify-object icon indicating copy to clipboard operation
stringify-object copied to clipboard

Stringify an object/array like JSON.stringify just without all the double-quotes

Results 5 stringify-object issues
Sort by recently updated
recently updated
newest added

* well-known symbol are format like `Symbol.iterator` * global registried symbol are format like `Symbol.for('name')` * other symbol are format like `Symbol('unique symbol')` close #80.

We can support global registried symbol and well-known symbol. this means `stringifyObject(Symbol.for('sym'))` can output `Symbol.for('sym')`, and `stringifyObject(Symbol.iterator)` output `Symbol.iterator`. I am not sure whether to support other symbols, because their...

It would be nice that the Map object were supported https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map https://stackoverflow.com/questions/29085197/how-do-you-json-stringify-an-es6-map

I believe that `stringify-object` doesn't correctly escape special characters in strings. Consider the following program: ```js const stringifyObject = require('stringify-object'); const s = 'tab: \t newline: \n backslash: \\'; console.log(JSON.stringify(s));...

empty strings are treated as falsey and ignored. to fix, this line: ```js opts.indent = opts.indent || '\t'; ``` could look something like this: ```js opts.indent = (typeof opts.indent ==...

enhancement
help wanted