GitShow/sindresorhus/resolve-pkg
sindresorhus

resolve-pkg

Resolve the path of a package regardless of it having an entry point

by sindresorhus
Star on GitHubForknpm

JavaScript

55 stars6 forks4 contributorsQuiet · 4mo agoSince 2015v3.0.1MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus18 contributions
BendingBender
BendingBender1 contribution
madjam002
madjam0021 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript96.4%
TypeScript3.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
ommeirelles
Package not being resolved by resolve-pkg but found by require.resolve() and import.metaClosedIssue

I'm working currenly in on project that uses a dep that is not being resolved correctly.

ommeirelles · 4mo ago
effektsvk
Doesn't work with ESM modulesClosedIssue

We found out that this doesn't work with ESM modules. Do you have a similar package that works with ESM modules?

effektsvk · 5mo ago
simonihmig
Does not work with package exportsClosedIssue

Given a package that has in its , like this: When trying to resolve that package, a error is thrown with Basically the assumption here that you can always resolve the of a package using node does not hold true anymore in this case. Still I'd like to be able to get the root path of that package, using node module resolution rules. 🤔

simonihmig · 5mo ago
Structured data for AI agents

Repository: sindresorhus/resolve-pkg. Description: Resolve the path of a package regardless of it having an entry point Stars: 55, Forks: 6. Primary language: JavaScript. Languages: JavaScript (96.4%), TypeScript (3.6%). License: MIT. Latest release: v3.0.1 (4mo ago). Open PRs: 0, open issues: 0. Last activity: 4mo ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, madjam002, Richienb.

·@ofershap

Replace github.com with gitshow.dev