Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mskelton/isomorphic-resolve
- Owner: mskelton
- License: isc
- Created: 2023-01-30T18:12:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T18:34:21.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T08:17:49.864Z (3 months ago)
- Topics: commonjs, esm, resolve
- Language: JavaScript
- Homepage: https://npm.im/isomorphic-resolve
- Size: 851 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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("...")
```