GitShow/sindresorhus/import-local
sindresorhus

import-local

Let a globally installed package use a locally installed version of itself if available

by sindresorhus
Star on GitHubForknpm

JavaScript

155 stars13 forks8 contributorsQuiet · 1y agoSince 2017v3.2.0MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus22 contributions
mxmul
mxmul2 contributions
coreyfarrell
coreyfarrell1 contribution
Zen-cronic
Zen-cronic1 contribution
Kei-Ito
Kei-Ito1 contribution
Richienb
Richienb1 contribution
yingning2021
yingning20211 contribution
yKanon
yKanon1 contribution

Languages

View on GitHub →
JavaScript100%

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 PRs & issues

Quiet · 2 discussions · Last activity 1y ago
See all on GitHub →
amaurypichat
pkgDir.sync is not a function in index.jsOpenIssue

I got this error while executing npm run test. I recently upgrade all versions of node, next.js, react.js and jest and I didn't have this error before. The test checks the text inside a react component located in a jsx file. I didn't find anything about this error on the net. !Capture Does it really relies on your package ? Do you know what to do ?

amaurypichat · 1y ago

Recent fixes

View closed PRs →
Zen-cronic
Add type declarationMergedPR

Motivation The current type declaration on DefinitelyTyped of this package does not accurately reflect the function's return type. See here. Why The most recent version of this function (as well as the oldest ones) is not designed to return just the boolean type. In the line, it can either return: if the first or third operand is false. if the second operand is undefined. whatever is exported from of the last operand, given all the previous values are truthy.

Zen-cronic · 1y ago
chrislol98
can some explain me, i see the package.json doesnt have the type module inside, but i can import it without pack tool, how do it workClosedIssue
chrislol98 · 3y ago
yKanon
Support `import.meta.url`MergedPR

description: use when use esmodule. but its value is 'file://xxxx'. so, return , and throw Error

yKanon · 4y ago
Structured data for AI agents

Repository: sindresorhus/import-local. Description: Let a globally installed package use a locally installed version of itself if available Stars: 155, Forks: 13. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v3.2.0 (1y ago). Open PRs: 0, open issues: 2. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, mxmul, coreyfarrell, Zen-cronic, Kei-Ito, Richienb, yingning2021, yKanon.

·@ofershap

Replace github.com with gitshow.dev