# resolve

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

Latest version **1.22.12** (published 2026-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install resolve
pnpm add resolve
yarn add resolve
bun add resolve
```

Provides the command `resolve`.

## Health

**Score 53/100 (C)** — status: active.

Positive: has types package; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.22.12 |
| Published | 2026-04-11 |
| First published | 2011-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/resolve) |
| Module format | CommonJS |
| Node | >= 0.4 |
| Dependencies | 4 |
| Unpacked size | 161.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 796 |
| Author | James Halliday |
| Maintainers | ljharb |
| Keywords | resolve, require, node, module |

## Links

- npm: https://www.npmjs.com/package/resolve
- Repository: https://github.com/browserify/resolve
- Homepage: https://github.com/browserify/resolve#readme
- Issues: https://github.com/browserify/resolve/issues
- Funding: https://github.com/sponsors/ljharb
- npm.io page: https://npm.io/package/resolve

## Dependencies (4)

- [es-errors](https://npm.io/package/es-errors.md) ^1.3.0
- [path-parse](https://npm.io/package/path-parse.md) ^1.0.7
- [is-core-module](https://npm.io/package/is-core-module.md) ^2.16.1
- [supports-preserve-symlinks-flag](https://npm.io/package/supports-preserve-symlinks-flag.md) ^1.0.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.22.12 (latest) — 2026-04-11
- 2.0.0-next.7 (next) — 2026-05-15
- 2.0.0-next.6 — 2026-02-17
- 1.22.11 — 2025-10-20
- 1.22.10 — 2024-12-19
- 1.22.9 — 2024-12-13
- 2.0.0-next.5 — 2023-10-10
- 1.22.8 — 2023-10-10
- 1.22.7 — 2023-10-10
- 1.22.6 — 2023-09-15
- 1.22.5 — 2023-09-14
- 1.22.4 — 2023-08-04
- 1.22.3 — 2023-04-14
- 1.22.2 — 2023-04-05
- 2.0.0-next.4 — 2022-06-18
- … 86 more at https://npm.io/package/resolve/versions

---
_Source: https://npm.io/package/resolve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
