</>PackageGraphPackageGraph

parse-json

npmv8.3.0TypeScript

Parse JSON with more helpful errors

Adopt with care

parse-json is usable, with caveats. Last published 518 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 518 days ago. 2 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 6 transitive packages, about 669 KB installed (at least — some of the tree is still being crawled).

  • 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 parse-json to a project.

3
Direct dependencies

Runtime packages this one declares itself.

6
Total installed

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

669 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

(MIT OR CC0-1.0)MIT

Every license you inherit by installing parse-json, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=18
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the parse-json README.

import parseJson, {JSONError} from 'parse-json';

const json = '{\n\t"foo": true,\n}';


JSON.parse(json);
/*
SyntaxError: Expected double-quoted property name in JSON at position 16 (line 3 column 1)
*/


parseJson(json);
/*
JSONError: Expected double-quoted property name in JSON at position 16 (line 3 column 1)
Example truncated — see the full README.

parse-json vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
parse-jsonthis page02MIT1 year ago
pg-connection-string38.9M2MIT1 day ago
query-string22.1M3MIT1 day ago
strnum01MIT1 day ago
strip-json-comments02MIT1 day ago
non-error01MIT1 day ago

Dependencies

Declared by parse-json v8.3.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

ava ^6.2.0c8 ^10.1.3outdent ^0.8.0strip-ansi ^7.1.0tsd ^0.31.2xo ^0.60.0

Used by

Popular packages that depend on parse-json.

Relationship graph

Dependencies (left) and dependents (right) of parse-json.

Frequently installed together

Release history

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

Recent versions of parse-json
VersionPublishedSizeLicense
8.3.0latest1 year ago11 KBMIT
8.2.01 year ago11 KBMIT
8.1.02 years ago9.3 KBMIT
8.0.12 years ago9.1 KBMIT
8.0.02 years ago8.8 KBMIT
7.1.12 years ago8.5 KBMIT
7.1.03 years ago8.2 KBMIT
7.0.03 years ago7.9 KBMIT
6.0.24 years ago5.3 KBMIT
6.0.14 years ago5.3 KBMIT
6.0.04 years ago5.4 KBMIT
5.2.05 years ago5.3 KBMIT
5.1.06 years ago5.0 KBMIT
5.0.16 years ago5.0 KBMIT
5.0.07 years ago4.9 KBMIT

Overview

parse-json is an npm package that parse JSON with more helpful errors. It has 2 known dependents in the graph. The latest version is 8.3.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need parse JSON with more helpful errors 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 parse-json?

parse-json is usable, with caveats. Last published 518 days ago. 2 releases in the last 2 years.

How do I install parse-json?

Run `npm install parse-json` to add parse-json to your npm project.

How many dependencies does parse-json have?

parse-json declares 9 direct dependencies and pulls in 6 packages in total once its runtime tree is resolved totalling about 669 KB on disk.

What license is parse-json released under?

parse-json is distributed under the MIT license. Its dependency tree also includes: (MIT OR CC0-1.0), MIT.

How popular is parse-json?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on parse-json.

Is parse-json still maintained?

The most recent release of parse-json (v8.3.0) was published 1 year ago.

Does parse-json run install scripts?

No. parse-json does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.