</>PackageGraphPackageGraph

stack-utils

npmv2.0.6

Captures and cleans stack traces

Not recommended for new projects

No — stack-utils should not be adopted for new projects. Last published 1401 days ago.

  • AAdoption: grade A, Excellent.

    48.7M downloads per week and 3 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 1401 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 18 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 stack-utils to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

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

18 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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

Compatibility

Node.js
node >=10
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the stack-utils README.

const StackUtils = require('stack-utils');
const stack = new StackUtils({cwd: process.cwd(), internals: StackUtils.nodeInternals()});

console.log(stack.clean(new Error().stack));
// outputs a beautified stack trace

Dependencies

Declared by stack-utils v2.0.6. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (7)

bluebird ^3.7.2coveralls ^3.0.9nested-error-stacks ^2.1.0pify ^4.0.1q ^1.5.1source-map-support ^0.5.20tap ^16.3.0

Used by

Popular packages that depend on stack-utils.

Relationship graph

Dependencies (left) and dependents (right) of stack-utils.

Frequently installed together

Release history

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

Recent versions of stack-utils
VersionPublishedSizeLicense
2.0.6latest3 years ago14 KBMIT
2.0.55 years ago14 KBMIT
2.0.45 years ago14 KBMIT
1.0.55 years ago14 KBMIT
1.0.45 years ago14 KBMIT
1.0.35 years ago14 KBMIT
2.0.35 years ago14 KBMIT
2.0.26 years ago14 KBMIT
2.0.16 years ago14 KBMIT
2.0.06 years ago14 KBMIT
1.0.27 years ago13 KBMIT
1.0.19 years agoMIT
1.0.09 years agoMIT
0.4.010 years agoMIT
0.3.010 years agoMIT

Overview

stack-utils is an npm package that captures and cleans stack traces. It is extremely widely used, with about 48.7M downloads per week and 3 known dependents in the graph. The latest version is 2.0.6, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need captures and cleans stack traces and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (48.7M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use stack-utils?

No — stack-utils should not be adopted for new projects. Last published 1401 days ago.

How do I install stack-utils?

Run `npm install stack-utils` to add stack-utils to your npm project.

How many dependencies does stack-utils have?

stack-utils declares 8 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 18 KB on disk.

What license is stack-utils released under?

stack-utils is distributed under the MIT license.

How popular is stack-utils?

stack-utils has approximately 48,704,853 downloads per week and 3 known dependent packages.

Is stack-utils still maintained?

The most recent release of stack-utils (v2.0.6) was published 3 years ago.

Does stack-utils run install scripts?

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