</>PackageGraphPackageGraph

strip-json-comments

npmv5.0.3TypeScript

Strip 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

8.0 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
strip-json-commentsthis page02MIT1 year ago
strip-bom01MIT1 day ago
getenv07MIT1 day ago
env-paths02MIT1 day ago
strip-indent01MIT1 day ago
redent03MIT1 day ago

Dependencies

Declared by strip-json-comments v5.0.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (4)

ava ^4.3.1matcha ^0.7.0tsd ^0.22.0xo ^0.54.2

Used by

Popular packages that depend on strip-json-comments.

Relationship graph

Dependencies (left) and dependents (right) of strip-json-comments.

jest-configesbuild-registerstrip-json-commen…
strip-json-comments dependencies dependents

Frequently installed together

Release history

2 releases in the last two years, typically about 97 days apart.

Recent versions of strip-json-comments
VersionPublishedSizeLicense
5.0.3latest1 year ago8.0 KBMIT
5.0.21 year ago8.0 KBMIT
5.0.13 years ago7.8 KBMIT
5.0.04 years ago8.3 KBMIT
4.0.05 years ago6.9 KBMIT
3.1.16 years ago6.8 KBMIT
3.1.06 years ago6.7 KBMIT
3.0.17 years ago6.2 KBMIT
3.0.07 years ago6.0 KBMIT
2.0.110 years agoMIT
2.0.010 years agoMIT
1.0.411 years agoMIT
1.0.311 years agoMIT
1.0.212 years agoMIT
1.0.112 years agoMIT

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

Keywords

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.