# @chialab/node-resolve

> A promise based node resolution library based on enhanced-resolve.

Latest version **0.19.1** (published 2026-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chialab/node-resolve
pnpm add @chialab/node-resolve
yarn add @chialab/node-resolve
bun add @chialab/node-resolve
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.19.1 |
| Published | 2026-02-25 |
| First published | 2021-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 719.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 183 |
| Author | Chialab |
| Maintainers | chialab-admin, chialab-developers |
| Keywords | node, resolve, exports, conditions, esm |

## Links

- npm: https://www.npmjs.com/package/@chialab/node-resolve
- Repository: https://github.com/chialab/rna
- Homepage: https://github.com/chialab/rna#readme
- Issues: https://github.com/chialab/rna/issues
- npm.io page: https://npm.io/package/@chialab/node-resolve

## 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

- 0.19.1 (latest) — 2026-02-25
- 0.19.0-beta.1 (beta) — 2024-07-09
- 0.18.0-alpha.1 (alpha) — 2023-08-29
- 0.19.0 — 2025-08-25
- 0.19.0-beta.0 — 2024-03-11
- 0.18.0 — 2024-01-11
- 0.17.1 — 2023-06-12
- 0.18.0-alpha.0 — 2023-05-01
- 0.17.0 — 2022-08-23
- 0.16.1 — 2022-08-04
- 0.16.0 — 2022-06-08
- 0.15.28 — 2022-05-10
- 0.15.9 — 2022-03-18
- 0.15.3 — 2022-03-04
- 0.15.2 — 2022-03-04
- … 27 more at https://npm.io/package/@chialab/node-resolve/versions

## README

# Node Resolve

A promise based node resolution library based on <a href="https://github.com/webpack/enhanced-resolve">enhanced-resolve</a>.

> [!CAUTION]
> This plugin development is deprecated and discontinued, as we are going to remove support for the `style` resolution field in package.json. It's recommended to use the [`oxc-resolver`](https://www.npmjs.com/package/oxc-resolver) package instead.

[![NPM](https://img.shields.io/npm/v/@chialab/node-resolve.svg)](https://www.npmjs.com/package/@chialab/node-resolve)

---

## Install

```sh
npm i @chialab/node-resolve -D
```

```sh
yarn add @chialab/node-resolve -D
```

```sh
pnpm add @chialab/node-resolve -D
```

## Usage

```js
import { resolve } from '@chialab/node-resolve';

await resolve('lit', '/path/to/www/js');
```

## License

**Node Resolve** is released under the [MIT](https://github.com/chialab/rna/blob/main/packages/node-resolve/LICENSE) license.

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