Package
comment-json
Parse and stringify JSON with comments. It will retain comments even after saved!
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
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
- v5 first release 5.0.0, 12 Apr 2026
- v4 first release 4.0.0, 1 Sept 2020
- v3 first release 3.0.0, 12 Feb 2020
- v2 first release 2.0.0, 21 Jun 2019
- v1 first release 1.0.0, 23 Jul 2015
- v0 first release 0.1.0, 18 Aug 2014
Recent releases
| Version | Published |
|---|---|
| 5.0.0 | 12 Apr 2026 |
| 4.6.2 | 3 Mar 2026 |
| 4.6.1 | 2 Mar 2026 |
| 4.6.0 | 2 Mar 2026 |
| 4.5.1 | 26 Dec 2025 |
| 4.5.0 | 11 Dec 2025 |
| 4.4.1 | 3 Oct 2025 |
| 4.4.0 | 2 Oct 2025 |
| 4.3.0 | 29 Sept 2025 |
| 4.2.5 | 11 Aug 2024 |
| 4.2.4 | 4 Jul 2024 |
| 4.2.3 | 17 Aug 2022 |
| 4.2.2 | 3 Feb 2022 |
| 4.2.1 | 3 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- jsDelivr
https://cdn.jsdelivr.net/npm/comment-json@5.0.0/ - unpkg
https://unpkg.com/comment-json@5.0.0/ - esm.sh
https://esm.sh/comment-json@5.0.0
Indexability: Indexed.