# @file-services/resolve

> Isomorphic, fs-agnostic implementation of the Node resolution algorithm.

Latest version **11.1.1** (published 2026-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @file-services/resolve
pnpm add @file-services/resolve
yarn add @file-services/resolve
bun add @file-services/resolve
```

## Health

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

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 11.1.1 |
| Published | 2026-07-09 |
| First published | 2019-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 86.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Maintainers | avi.vahl, pistolpete_, cijoe |

## Links

- npm: https://www.npmjs.com/package/@file-services/resolve
- Repository: https://github.com/dazl-dev/file-services
- Issues: https://github.com/dazl-dev/file-services/issues
- npm.io page: https://npm.io/package/@file-services/resolve

## Dependencies (1)

- [type-fest](https://npm.io/package/type-fest.md) ^5.8.0

## Recent versions

- 11.1.1 (latest) — 2026-07-09
- 11.1.0 — 2026-05-24
- 11.0.1 — 2025-09-14
- 11.0.0 — 2025-09-04
- 10.0.1 — 2025-04-07
- 10.0.0 — 2025-04-07
- 9.4.1 — 2024-08-04
- 9.4.0 — 2024-07-14
- 9.3.1 — 2024-06-09
- 9.3.0 — 2024-05-26
- 9.2.1 — 2024-04-25
- 9.2.0 — 2024-04-03
- 9.1.0 — 2024-03-18
- 9.0.0 — 2024-03-10
- 8.3.3 — 2023-11-09
- … 54 more at https://npm.io/package/@file-services/resolve/versions

## README

# @file-services/resolve

[![npm version](https://img.shields.io/npm/v/@file-services/resolve.svg)](https://www.npmjs.com/package/@file-services/resolve)
[![package size](https://img.shields.io/bundlephobia/minzip/@file-services/resolve)](https://bundlephobia.com/result?p=@file-services/resolve)

Isomorphic, fs-agnostic implementation of the Node resolution algorithm.

Implements the following behaviors:

- https://nodejs.org/api/modules.html#modules_all_together
- https://github.com/defunctzombie/package-browser-field-spec

## Getting started

Install library in project:

```sh
npm i @file-services/resolve
```

Then, use the programmatic API:

```ts
import { createRequestResolver } from "@file-services/resolve";
import { createMemoryFs } from "@file-services/memory";

const fs = createMemoryFs({
  "some-folder": {
    "index.js": "some content",
  },
});

const resolveRequest = createRequestResolver({ fs });

resolveRequest("/", "./some-folder");
// === '/some-folder/index.js'
```

## License

MIT

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