Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

rsolve

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsolve

Resolve module path with custom entry point `package.json` field relative to caller file

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

rsolve npm

Resolve module path with custom entry point package.json field relative to caller file.

Install

$ yarn add rsolve

Usage

rsolve(id: string, fieldName: string) => Promise<string>
import { rsolve } from 'rsolve'

console.log(
  await rsolve('package', 'main')
)
console.log(
  await rsolve('@scope/package', 'browser')
)
console.log(
  await rsolve('../relative/path/to/package', 'react-native')
)

Keywords

resolve

FAQs

Package last updated on 18 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts