</>PackageGraphPackageGraph

destr

npmv2.0.5TypeScript

A faster, secure and convenient alternative for JSON.parse

Adopt with care

destr is usable, with caveats. Last published 524 days ago. 2 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    27.6M downloads per week and 3 known dependents.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 524 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 11 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 destr 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.

11 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
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the destr README.

// ESM
import { destr, safeDestr } from "destr";

// CommonJS
const { destr, safeDestr } = require("destr");

Dependencies

Declared by destr v2.0.5. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (11)

@hapi/bourne ^3.0.0@vitest/coverage-v8 ^3.1.1changelogen ^0.6.1eslint ^9.23.0eslint-config-unjs ^0.4.2mitata ^1.0.34prettier ^3.5.3secure-json-parse ^4.0.0typescript ^5.8.2unbuild ~3.4vitest ^3.1.1

Used by

Popular packages that depend on destr.

Relationship graph

Dependencies (left) and dependents (right) of destr.

@devframes/hubjitidevframedestr
destr dependencies dependents

Frequently installed together

Release history

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

Recent versions of destr
VersionPublishedSizeLicense
2.0.5latest1 year ago11 KBMIT
2.0.41 year ago11 KBMIT
2.0.32 years ago11 KBMIT
2.0.22 years ago11 KBMIT
2.0.13 years ago12 KBMIT
2.0.03 years ago12 KBMIT
1.2.23 years ago9.5 KBMIT
1.2.13 years ago9.2 KBMIT
1.2.03 years ago14 KBMIT
1.1.14 years ago10 KBMIT
1.1.05 years ago9.3 KBMIT
1.0.15 years ago8.0 KBMIT
1.0.06 years ago7.7 KBMIT
0.1.96 years ago7.6 KBMIT
0.1.86 years ago7.4 KBMIT

Overview

destr is an npm package that a faster, secure and convenient alternative for JSON.parse. It is extremely widely used, with about 27.6M downloads per week and 3 known dependents in the graph. The latest version is 2.0.5, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a faster, secure and convenient alternative for JSON.parse and value a battle-tested, widely-adopted 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

  • Large, well-established user base (27.6M weekly downloads).
  • 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

Frequently asked questions

Should I use destr?

destr is usable, with caveats. Last published 524 days ago. 2 releases in the last 2 years.

How do I install destr?

Run `npm install destr` to add destr to your npm project.

What license is destr released under?

destr is distributed under the MIT license.

How popular is destr?

destr has approximately 27,642,643 downloads per week and 3 known dependent packages.

Is destr still maintained?

The most recent release of destr (v2.0.5) was published 1 year ago.

Does destr run install scripts?

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