Skip to content
JS
Package

json-stringify-pretty-compact

The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.

v4.0.0, 14 May 2022MITESM onlyTypes: BundledParsers and serialisersLinting and formatting
$ npm install json-stringify-pretty-compact

Key numbers

As of 25 Sept 2026
Weekly downloads
6.2m
+206% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v4.0.0
GitHub stars
269
32 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
7

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6m8mSept 2025Mar 2026Sept 2026High 8m (25 Aug 2026)Low 1.2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

6,222,619 downloads last week, 28,272,621 in the last month. The 12-month change of +206% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
010 in total
Latest version
4.0.0, 14 May 20224 years ago
First published
1 Nov 2014
Last push to GitHub
13 Sept 202611 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
7
Dependents on npm
-

Major versions

  1. v4 first release 4.0.0, 14 May 2022
  2. v3 first release 3.0.0, 20 Feb 2021
  3. v2 first release 2.0.0, 2 Feb 2019
  4. v1 first release 1.0.0, 1 Nov 2014

Recent releases

VersionPublished
4.0.014 May 2022
3.0.020 Feb 2021
2.0.02 Feb 2019
1.2.022 Apr 2018
1.1.012 Jan 2018
1.0.429 Apr 2017
1.0.330 Mar 2017
1.0.28 Sept 2016
1.0.13 Nov 2014
1.0.01 Nov 2014
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
7.2 kB
Dependencies (0)
None
npm install json-stringify-pretty-compact
  • jsDelivrhttps://cdn.jsdelivr.net/npm/json-stringify-pretty-compact@4.0.0/
  • unpkghttps://unpkg.com/json-stringify-pretty-compact@4.0.0/
  • esm.shhttps://esm.sh/json-stringify-pretty-compact@4.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@biomejs/wasm-nodejs613k-8 days agoCommonJS-
jsonc-eslint-parser5m-1 month agoESM only-
@messageformat/number-skeleton545k-3 years agoESM only-
fast-json-stringify11.1m-2 months agoCommonJS-
toml-eslint-parser886.5k-8 months agoESM only-
@textlint/fixer-formatter128.3k-1 month agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.