devalue
npmv5.9.2TypeScriptGets the job done when JSON.stringify can't
Safe to adopt
Yes — devalue scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 13 days ago. 23 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 13 days ago. 23 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 101 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- 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 devalue 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 only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the devalue README.
import * as devalue from 'devalue';
let obj = { message: 'hello' };
devalue.uneval(obj); // '{message:"hello"}'
obj.self = obj;
devalue.uneval(obj); // '(function(a){a.message="hello";a.self=a;return a}({}))'Dependencies
Declared by devalue v5.9.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (7)
Used by
Popular packages that depend on devalue.
Relationship graph
Dependencies (left) and dependents (right) of devalue.
Frequently installed together
An extremely fast JavaScript and CSS bundler and minifier.
Next generation testing framework powered by Vite
TypeScript definitions for node
ECMAScript parser
TypeScript definitions for estree
Programmatic access to information about the AXObject Model
Acorn plugin that parses TypeScript
Programmatic access to the ARIA specification
Determine whether an AST node is a reference
Uses export conditions to return environment information in a way that works with major bundlers and runtimes.
Encode/decode sourcemap mappings
Remap sequential sourcemaps through transformations to point at the original source code
Release history
21 releases in the last two years, typically about 21 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.9.2latest | 13 days ago | 101 KB | MIT |
| 5.9.1 | 20 days ago | 101 KB | MIT |
| 5.9.0 | 1 month ago | 100 KB | MIT |
| 5.8.2 | 1 month ago | 53 KB | MIT |
| 5.8.1 | 3 months ago | 51 KB | MIT |
| 5.8.0 | 4 months ago | 50 KB | MIT |
| 5.7.1 | 5 months ago | 48 KB | MIT |
| 5.7.0 | 5 months ago | 47 KB | MIT |
| 5.6.4 | 6 months ago | 45 KB | MIT |
| 5.6.3 | 6 months ago | 45 KB | MIT |
| 5.6.2 | 7 months ago | 36 KB | MIT |
| 5.6.1 | 9 months ago | 35 KB | MIT |
| 5.6.0 | 9 months ago | 35 KB | MIT |
| 5.5.0 | 10 months ago | 34 KB | MIT |
| 5.4.2 | 10 months ago | 34 KB | MIT |
Overview
devalue is an npm package that gets the job done when JSON.stringify can't. It has 2 known dependents in the graph. The latest version is 5.9.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need gets the job done when JSON.stringify can't 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
Frequently asked questions
Should I use devalue?
Yes — devalue scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 13 days ago. 23 releases in the last 2 years.
How do I install devalue?
Run `npm install devalue` to add devalue to your npm project.
What license is devalue released under?
devalue is distributed under the MIT license.
How popular is devalue?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on devalue.
Is devalue still maintained?
The most recent release of devalue (v5.9.2) was published 13 days ago.
Does devalue run install scripts?
No. devalue does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.