Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-stringify-pretty-compact

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-stringify-pretty-compact - npm Package Versions

4.0.0

Diff

Changelog

Source

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.

lydell
published 3.0.0 •

Changelog

Source

Version 3.0.0 (2021-02-20)

  • Changed: The TypeScript definition is now closer to JSON.stringify. It’s slightly stricter, but I doubt you’ll notice a difference.
  • Added: "type": "commonjs", "exports": "./index.js", "types": "index.d.ts" to package.json. I doubt you’ll notice any difference from this either.
lydell
published 2.0.0 •

Changelog

Source

Version 2.0.0 (2019-02-02)

  • Removed: The 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.
  • Added: Support for the [replacer] argument.
  • Changed: Passing undefined to options now result in the default value being used. This is to align with how destructuring defaults work in ES2015.
lydell
published 1.2.0 •

Changelog

Source

Version 1.2.0 (2018-04-22)

  • Added: TypeScript definition. Thanks to @domoritz!
lydell
published 1.1.0 •

Changelog

Source

Version 1.1.0 (2018-01-12)

  • Added: The margins option. Thanks to @randallsquared!
lydell
published 1.0.4 •

Changelog

Source

Version 1.0.4 (2017-04-29)

  • Fixed: String contents are no longer accidentally modified in some cases. Thanks to @powellquiring!
lydell
published 1.0.3 •

Changelog

Source

Version 1.0.3 (2017-03-30)

  • No code changes. Just trying to get the readme to show on npmjs.com.
lydell
published 1.0.2 •

Changelog

Source

Version 1.0.2 (2016-09-08)

  • Improved: Limited npm package contents for a smaller download.
lydell
published 1.0.1 •

Changelog

Source

Version 1.0.1 (2014-11-03)

  • Fixed: Commas are now accounted for when calculating the available length of a line, so that they do not appear outside options.maxLength.
lydell
published 1.0.0 •

Changelog

Source

Version 1.0.0 (2014-11-01)

  • Initial release.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc