resolve
npmv1.22.12resolve like require.resolve() on behalf of files asynchronously and synchronously
Overview
resolve is an npm package that resolve like require.resolve() on behalf of files asynchronously and synchronously. It is extremely widely used, with about 226.9M downloads per week and 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 battle-tested, widely-adopted 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
- Large, well-established user base (226.9M weekly downloads).
- 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.
Relationship graph
Dependencies (left) and dependents (right) of resolve.
Dependencies
Runtime (4)
Dev (17)
Used by
Popular packages that depend on resolve.
Alternatives to resolve
Resolve the path of a module like `require.resolve()` but from a given path
Resolve things like Node.js — ponyfill for `import.meta.resolve`
Resolve the path of a module like `require.resolve()` but from the current working directory
Is this specifier a node.js core module?
Let a globally installed package use a locally installed version of itself if available
Tomorrow's ECMAScript modules today!
Find a file or directory by walking up parent directories
Determine if the current node version supports the `--preserve-symlinks` flag.
Prepare a node environment to require files with different extensions.
A library for installing and finding packages in a project
A library to generate a fingerprint from a React Native project
Isomorphic WebSockets in Node, Bun, Deno and Cloudflare Workers
Frequently installed together
An AST-based pattern checker for JavaScript.
The semantic version parser used by npm.
TypeScript definitions for node
Find and load configuration from a package.json property, rc file, TypeScript module, and more!
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
A high-level API to automate web browsers
Bare bones Promises/A+ implementation
No description provided.
Make a directory and its parents if needed - Think `mkdir -p`
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
A comprehensive library for mime-type mapping
A drop-in replacement for fs, making various improvements.
Version history
| Version | Published | License |
|---|---|---|
| 2.0.0-next.7 | 2 months ago | MIT |
| 1.22.12latest | 3 months ago | MIT |
| 2.0.0-next.6 | 5 months ago | MIT |
| 1.22.11 | 9 months ago | MIT |
| 1.22.10 | 1 year ago | MIT |
| 1.22.9 | 1 year ago | MIT |
| 2.0.0-next.5 | 2 years ago | MIT |
| 1.22.8 | 2 years ago | MIT |
| 1.22.7 | 2 years ago | MIT |
| 1.22.6 | 2 years ago | MIT |
| 1.22.5 | 2 years ago | MIT |
| 1.22.4 | 3 years ago | MIT |
| 1.22.3 | 3 years ago | MIT |
| 1.22.2 | 3 years ago | MIT |
| 2.0.0-next.4 | 4 years ago | MIT |
| 1.22.1 | 4 years ago | MIT |
| 1.22.0 | 4 years ago | MIT |
| 1.21.1 | 4 years ago | MIT |
| 1.21.0 | 4 years ago | MIT |
| 1.20.0 | 5 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install resolve?
Run `npm install resolve` to add resolve to your npm project.
What license is resolve released under?
resolve is distributed under the MIT license.
How popular is resolve?
resolve has approximately 226,947,248 downloads per week and 2 known dependent packages.