strip-json-comments
npmv5.0.3TypeScriptStrip comments from JSON. Lets you use comments in your JSON files!
Adopt with care
strip-json-comments is usable, with caveats. Last published 397 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 397 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 8.0 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding strip-json-comments to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=14.16
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the strip-json-comments README.
{
// Rainbows
"unicorn": /* ❤ */ "cake"
}strip-json-comments vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| strip-json-commentsthis page | 0 | 2 | MIT | 1 year ago |
| strip-bom | 0 | 1 | MIT | 1 day ago |
| getenv | 0 | 7 | MIT | 1 day ago |
| env-paths | 0 | 2 | MIT | 1 day ago |
| strip-indent | 0 | 1 | MIT | 1 day ago |
| redent | 0 | 3 | MIT | 1 day ago |
Dependencies
Declared by strip-json-comments v5.0.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on strip-json-comments.
Relationship graph
Dependencies (left) and dependents (right) of strip-json-comments.
Frequently installed together
TypeScript execution environment and REPL for node.js, with source map support
Transpile JSX, TypeScript and esnext features on the fly with esbuild
An extremely fast JavaScript and CSS bundler and minifier.
TypeScript definitions for node
This packages is a collection of utilities and helper functions
Generic configuration validation tool that helps you with warnings, errors and deprecation messages as well as showing users examples of correct configuration.
No description provided.
`@jest/pattern` is a helper library for the jest library that implements the logic for parsing and matching patterns.
No description provided.
The semantic version parser used by npm.
Convert Windows backslash paths to slash paths
Stringify any JavaScript value.
Release history
2 releases in the last two years, typically about 97 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.0.3latest | 1 year ago | 8.0 KB | MIT |
| 5.0.2 | 1 year ago | 8.0 KB | MIT |
| 5.0.1 | 3 years ago | 7.8 KB | MIT |
| 5.0.0 | 4 years ago | 8.3 KB | MIT |
| 4.0.0 | 5 years ago | 6.9 KB | MIT |
| 3.1.1 | 6 years ago | 6.8 KB | MIT |
| 3.1.0 | 6 years ago | 6.7 KB | MIT |
| 3.0.1 | 7 years ago | 6.2 KB | MIT |
| 3.0.0 | 7 years ago | 6.0 KB | MIT |
| 2.0.1 | 10 years ago | — | MIT |
| 2.0.0 | 10 years ago | — | MIT |
| 1.0.4 | 11 years ago | — | MIT |
| 1.0.3 | 11 years ago | — | MIT |
| 1.0.2 | 12 years ago | — | MIT |
| 1.0.1 | 12 years ago | — | MIT |
Overview
strip-json-comments is an npm package that strip comments from JSON. Lets you use comments in your JSON files!. It has 2 known dependents in the graph. The latest version is 5.0.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need strip comments from JSON. Lets you use comments in your JSON files! and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use strip-json-comments?
strip-json-comments is usable, with caveats. Last published 397 days ago. 2 releases in the last 2 years.
How do I install strip-json-comments?
Run `npm install strip-json-comments` to add strip-json-comments to your npm project.
What license is strip-json-comments released under?
strip-json-comments is distributed under the MIT license.
How popular is strip-json-comments?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on strip-json-comments.
Is strip-json-comments still maintained?
The most recent release of strip-json-comments (v5.0.3) was published 1 year ago.
Does strip-json-comments run install scripts?
No. strip-json-comments does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.