UNPKG

yea-stringify

Version:

Yet Another JSON.stringify with some additional features.

17 lines (15 loc) 484 B
(function() { "use strict"; const JSON_stringify = require("../index.js"); JSON_stringify.setOption({ "eliminate-undefined": false, "eliminate-recursive": false, "show-recursive-reference": true, "show-function": true, "show-index" : true, "show-length" : true, "sort-keys" : true }); var obj = new Function("return this")(); console.log("global =", JSON_stringify(obj, null, 4)); }());