Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mskelton/isomorphic-resolve

Isomorphic `require.resolve` for ESM and CommonJS
https://github.com/mskelton/isomorphic-resolve

commonjs esm resolve

Last synced: 15 days ago
JSON representation

Isomorphic `require.resolve` for ESM and CommonJS

Awesome Lists containing this project

README

        

# isomorphic-resolve

Isomorphic `require.resolve` for ESM and CommonJS

## Installation

### npm

```bash
npm install isomorphic-resolve
```

### Yarn

```bash
yarn add isomorphic-resolve
```

## Usage

```javascript
import resolve from "isomorphic-resolve"

resolve("...")
```