</>PackageGraphPackageGraph

devalue

npmv5.9.2TypeScript

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

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.

101 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 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)

@changesets/cli ^2.29.6@js-temporal/polyfill ^0.5.1@types/node ^24.12.0dts-buddy ^0.6.2publint ^0.3.12typescript ^5.9.2uvu ^0.5.6

Used by

Popular packages that depend on devalue.

Relationship graph

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

sveltequickjs-wasidevalue
devalue dependencies dependents

Frequently installed together

Release history

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

Recent versions of devalue
VersionPublishedSizeLicense
5.9.2latest13 days ago101 KBMIT
5.9.120 days ago101 KBMIT
5.9.01 month ago100 KBMIT
5.8.21 month ago53 KBMIT
5.8.13 months ago51 KBMIT
5.8.04 months ago50 KBMIT
5.7.15 months ago48 KBMIT
5.7.05 months ago47 KBMIT
5.6.46 months ago45 KBMIT
5.6.36 months ago45 KBMIT
5.6.27 months ago36 KBMIT
5.6.19 months ago35 KBMIT
5.6.09 months ago35 KBMIT
5.5.010 months ago34 KBMIT
5.4.210 months ago34 KBMIT

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.