# resolve-module

> a minimal implementation of the resolve module

Latest version **0.2.0** (published 2014-01-27) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-01-27 |
| First published | 2014-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jake Rosoman |
| Maintainers | jkroso |
| Keywords | require, resolve, node-resolve |

## Links

- npm: https://www.npmjs.com/package/resolve-module
- Repository: https://github.com/jkroso/node-resolve-module
- Issues: https://github.com/jkroso/node-resolve-module/issues
- npm.io page: https://npm.io/package/resolve-module

## 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.2.0 (latest) — 2014-01-27
- 0.1.0 — 2014-01-21

## README

# resolve-module

  A minimal implementation of the resolve module. It cheats and uses some of nodes "private" internals but they consider their module API frozen so no need to worry.

## Installation

`npm install resolve-module`

then in your app:

```js
var resolve = require('resolve-module')
```

## API

### resolve(base, name)

```js
resolve(__filename, 'fs') // => 'fs'
resolve(__filename, './') // => __dirname + '/index.js'
resolve(__filename, 'jsmd') // => __dirname + '/node_modules/jsmd/lib/jsmd.js'
```

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