</>PackageGraphPackageGraph

resolve

npmv1.22.12

resolve like require.resolve() on behalf of files asynchronously and synchronously

Adopt with care

resolve is usable, with caveats.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 151 days ago. 6 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 6 transitive packages, about 265 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 resolve to a project.

4
Direct dependencies

Runtime packages this one declares itself.

6
Total installed

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

265 KB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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

Compatibility

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

resolve vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
resolvethis page02MIT5 months ago
resolve-cwd01MIT1 day ago
import-meta-resolve03MIT1 day ago
resolve-from08MIT1 day ago
esm6.2M5MIT1 day ago
is-core-module01MIT1 day ago

Dependencies

Declared by resolve v1.22.12. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (17)

@ljharb/eslint-config ^22.2.2array.prototype.map ^1.0.8copy-dir ^1.3.0eclint ^2.8.1eslint ^9.39.1in-publish ^2.0.1jiti ^0.0.0mkdirp ^0.5.6mv ^2.1.1npmignore ^0.3.5object-keys ^1.1.1rimraf ^2.7.1safe-publish-latest ^2.0.0semver ^6.3.1tap ^0.4.13tape ^5.9.0tmp ^0.0.31

Used by

Popular packages that depend on resolve.

Relationship graph

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

Frequently installed together

Release history

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

Recent versions of resolve
VersionPublishedSizeLicense
2.0.0-next.73 months ago274 KBMIT
1.22.12latest5 months ago162 KBMIT
2.0.0-next.66 months ago213 KBMIT
1.22.1110 months ago151 KBMIT
1.22.101 year ago142 KBMIT
1.22.91 year ago2.9 MBMIT
2.0.0-next.52 years ago135 KBMIT
1.22.82 years ago142 KBMIT
1.22.72 years ago142 KBMIT
1.22.63 years ago141 KBMIT
1.22.53 years ago141 KBMIT
1.22.43 years ago141 KBMIT
1.22.33 years ago142 KBMIT
1.22.23 years ago141 KBMIT
2.0.0-next.44 years ago134 KBMIT

Overview

resolve is an npm package that resolve like require.resolve() on behalf of files asynchronously and synchronously. It has 2 known dependents in the graph. The latest version is 1.22.12, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need resolve like require.resolve() on behalf of files asynchronously and synchronously and value a focused solution.

When not to use it

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

Pros

  • Clear open-source license (MIT).

Cons

  • Large dependency tree (21 direct dependencies) increases install size and audit surface.
  • No bundled TypeScript types (may require a separate @types package).

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

Maintainers

Keywords

Funding

Frequently asked questions

Should I use resolve?

resolve is usable, with caveats.

How do I install resolve?

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

How many dependencies does resolve have?

resolve declares 21 direct dependencies and pulls in 6 packages in total once its runtime tree is resolved totalling about 265 KB on disk.

What license is resolve released under?

resolve is distributed under the MIT license.

How popular is resolve?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on resolve.

Is resolve still maintained?

The most recent release of resolve (v1.22.12) was published 5 months ago.

Does resolve run install scripts?

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