GitShow/sindresorhus/strip-json-comments
sindresorhus

strip-json-comments

Strip comments from JSON. Lets you use comments in your JSON files!

by sindresorhus
jsonjson-commentsjsoncnpm-package
Star on GitHubForknpm

JavaScript

626 stars56 forks21 contributorsQuiet · 11mo agoSince 2013v5.0.3MIT

Meet the team

See all 21 on GitHub →
sindresorhus
sindresorhus61 contributions
lydell
lydell2 contributions
blakeembrey
blakeembrey1 contribution
BendingBender
BendingBender1 contribution
EdwardBetts
EdwardBetts1 contribution
joshuajaco
joshuajaco1 contribution
kevva
kevva1 contribution
papb
papb1 contribution

Languages

View on GitHub →
JavaScript95.6%
TypeScript4.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
brleinad
Fix 51 ignore invalid commentsMergedPR

Fix #51 Ignore Invalid Comments Updated parsing logic to account for when a comment doesn't get closed. Updated failing test -> now all tests pass 🎉

brleinad · 11mo ago
sindresorhus
Ignore invalid commentsClosedIssue

For example, should be ignored. https://github.com/sindresorhus/strip-json-comments/blob/ad70a18c06f5a3c93f02f855489d1c0f900f43d3/test.js#L67-L70

sindresorhus · 11mo ago
rene-leanix
Non-breaking spaces in comments are not removed, invalidating the resulting JSON structureClosedIssue

The following code throws an error, because the non-breaking-space character (within single quotes) is still present in the resulting JSON:

rene-leanix · 1y ago
Structured data for AI agents

Repository: sindresorhus/strip-json-comments. Description: Strip comments from JSON. Lets you use comments in your JSON files! Stars: 626, Forks: 56. Primary language: JavaScript. Languages: JavaScript (95.6%), TypeScript (4.4%). License: MIT. Topics: json, json-comments, jsonc, npm-package. Latest release: v5.0.3 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 85%. Top contributors: sindresorhus, lydell, blakeembrey, BendingBender, EdwardBetts, joshuajaco, kevva, papb, C0ldF0x, Richienb and others.

·@ofershap

Replace github.com with gitshow.dev