json-stringify-pretty-compact
Advanced tools
Changelog
Version 4.0.0 (2022-05-14)
Changed: This is now an [ESM only package]. (I haven’t written that gist, but it’s a great resource.)
If you need CommonJS, install version 3.0.0. You won’t be missing out on anything: This package is done. No more features will be added, and no bugs have been found in years.
Changelog
Version 3.0.0 (2021-02-20)
JSON.stringify
. It’s slightly stricter, but I doubt you’ll notice a difference."type": "commonjs", "exports": "./index.js", "types": "index.d.ts"
to package.json. I doubt you’ll notice any difference from this either.Changelog
Version 2.0.0 (2019-02-02)
margins
option. Check out [@aitodotai/json-stringify-pretty-compact] if you miss it. This package is now purely a combination of JSON.stringify(obj)
and JSON.stringify(obj, null, 2)
with no additional formatting features on top of that.undefined
to options now result in the default value being used. This is to align with how destructuring defaults work in ES2015.Changelog
Version 1.0.4 (2017-04-29)
Changelog
Version 1.0.3 (2017-03-30)
Changelog
Version 1.0.2 (2016-09-08)
Changelog
Version 1.0.1 (2014-11-03)
options.maxLength
.