sindresorhus

import-local

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

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 1 commit

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

Active · 2 discussions · Last activity 1mo ago
See all on GitHub →
amaurypichat

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
Zen-cronic

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 · 2y ago
yKanon

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 (2y ago). Open PRs: 0, open issues: 2. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, mxmul, coreyfarrell, Zen-cronic, Kei-Ito, Richienb, yingning2021, yKanon.