destr
npmv2.0.5TypeScriptA 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.
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
- 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)
Used by
Popular packages that depend on destr.
Hub layer that orchestrates devframe docks, terminals, messages, and commands on any host.
Runtime typescript and ESM support for Node.js
Framework for building one portable devtool integration that runs in any viewer.
Relationship graph
Dependencies (left) and dependents (right) of destr.
Frequently installed together
Framework for building one portable devtool integration that runs in any viewer.
Missing ECMAScript module utils for Node.js
Universal filesystem path utils
<!-- automd:badges color=yellow codecov bundlephobia packagephobia -->
Simple yet powerful framework for building command-line apps.
The modular and type safe schema library for validating structural data
Structured diagnostic code library
URL utils for humans
Minimal H(TTP) framework built for high performance and portability.
Get an available TCP port to listen
TypeScript definitions for node
A minimal library for executing processes in Node
Release history
2 releases in the last two years, typically about 26 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.5latest | 1 year ago | 11 KB | MIT |
| 2.0.4 | 1 year ago | 11 KB | MIT |
| 2.0.3 | 2 years ago | 11 KB | MIT |
| 2.0.2 | 2 years ago | 11 KB | MIT |
| 2.0.1 | 3 years ago | 12 KB | MIT |
| 2.0.0 | 3 years ago | 12 KB | MIT |
| 1.2.2 | 3 years ago | 9.5 KB | MIT |
| 1.2.1 | 3 years ago | 9.2 KB | MIT |
| 1.2.0 | 3 years ago | 14 KB | MIT |
| 1.1.1 | 4 years ago | 10 KB | MIT |
| 1.1.0 | 5 years ago | 9.3 KB | MIT |
| 1.0.1 | 5 years ago | 8.0 KB | MIT |
| 1.0.0 | 6 years ago | 7.7 KB | MIT |
| 0.1.9 | 6 years ago | 7.6 KB | MIT |
| 0.1.8 | 6 years ago | 7.4 KB | MIT |
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.