Skip to content
JS
Package

comment-json

Parse and stringify JSON with comments. It will retain comments even after saved!

v5.0.0, 12 Apr 2026MITCommonJSTypes: BundledParsers and serialisers
$ npm install comment-json

Key numbers

As of 25 Sept 2026
Weekly downloads
11.2m
+139% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
5 months ago
v5.0.0
GitHub stars
178
15 forks
Open issues / PRs
1 / 1
Contributors
-
Commits, last 52 weeks
61

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15m20mSept 2025Mar 2026Sept 2026High 16.2m (25 Aug 2026)Low 4m (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.

11,242,390 downloads last week, 57,733,175 in the last month. The 12-month change of +139% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
964 in total
Latest version
5.0.0, 12 Apr 20265 months ago
First published
18 Aug 2014
Last push to GitHub
12 Apr 2026165 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
1
Commits, last 52 weeks
61
Dependents on npm
687

Major versions

  1. v5 first release 5.0.0, 12 Apr 2026
  2. v4 first release 4.0.0, 1 Sept 2020
  3. v3 first release 3.0.0, 12 Feb 2020
  4. v2 first release 2.0.0, 21 Jun 2019
  5. v1 first release 1.0.0, 23 Jul 2015
  6. v0 first release 0.1.0, 18 Aug 2014

Recent releases

VersionPublished
5.0.012 Apr 2026
4.6.23 Mar 2026
4.6.12 Mar 2026
4.6.02 Mar 2026
4.5.126 Dec 2025
4.5.011 Dec 2025
4.4.13 Oct 2025
4.4.02 Oct 2025
4.3.029 Sept 2025
4.2.511 Aug 2024
4.2.44 Jul 2024
4.2.317 Aug 2022
4.2.23 Feb 2022
4.2.13 Feb 2022
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 6
Runtimes
-
Unpacked size (npm)
71 kB
Dependencies (2)
esprimaarray-timsort
npm install comment-json
  • jsDelivrhttps://cdn.jsdelivr.net/npm/comment-json@5.0.0/
  • unpkghttps://unpkg.com/comment-json@5.0.0/
  • esm.shhttps://esm.sh/comment-json@5.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.