</>PackageGraphPackageGraph

escalade

npmv3.2.0TypeScript

A tiny (183B to 210B) and fast utility to ascend parent directories

Adopt with care

escalade is usable, with caveats. Last published 741 days ago.

  • AAdoption: grade A, Excellent.

    136.6M downloads per week and 3 known dependents.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 741 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 12 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 escalade 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.

12 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
node >=6
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the escalade README.

//~> demo.js
import { join } from 'path';
import escalade from 'escalade';

const input = join(__dirname, 'demo.js');
// or: const input = __dirname;

const pkg = await escalade(input, (dir, names) => {
  console.log('~> dir:', dir);
  console.log('~> names:', names);
  console.log('---');

  if (names.includes('package.json')) {
    // will be resolved into absolute
Example truncated — see the full README.

escalade vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
escaladethis page136.6M3MIT2 years ago
find-up-simple02MIT1 day ago
pkg-dirdeprecated01MIT1 day ago
find-up04MIT1 day ago
make-dir02MIT1 day ago
p-locate216.9M1MIT1 day ago

Dependencies

Declared by escalade v3.2.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

bundt 1.1.1esm 3.2.25uvu 0.3.3

Used by

Popular packages that depend on escalade.

Relationship graph

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

knexupdate-browsersli…yargsescalade
escalade dependencies dependents

Frequently installed together

Release history

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

Recent versions of escalade
VersionPublishedSizeLicense
3.2.0latest2 years ago12 KBMIT
3.1.22 years ago11 KBMIT
3.1.15 years ago11 KBMIT
3.1.06 years ago11 KBMIT
3.0.26 years ago11 KBMIT
3.0.16 years ago11 KBMIT
3.0.06 years ago11 KBMIT
2.0.06 years ago11 KBMIT
1.0.06 years ago11 KBMIT
0.0.06 years ago1.7 KBMIT

Overview

escalade is an npm package that a tiny (183B to 210B) and fast utility to ascend parent directories. It is extremely widely used, with about 136.6M downloads per week and 3 known dependents in the graph. The latest version is 3.2.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a tiny (183B to 210B) and fast utility to ascend parent directories 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 (136.6M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

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

Maintainers

Keywords

Frequently asked questions

Should I use escalade?

escalade is usable, with caveats. Last published 741 days ago.

How do I install escalade?

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

What license is escalade released under?

escalade is distributed under the MIT license.

How popular is escalade?

escalade has approximately 136,594,460 downloads per week and 3 known dependent packages.

Is escalade still maintained?

The most recent release of escalade (v3.2.0) was published 2 years ago.

Does escalade run install scripts?

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