GitShow/sindresorhus/strict-import
sindresorhus

strict-import

Prevent `require` from searching upwards for required modules

by sindresorhus
importnode-modulesnodejsnpm-packagerequire
Star on GitHubForknpm

JavaScript

94 stars2 forks3 contributorsQuiet · 5y agoSince 2018MIT

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus4 contributions
itaisteinherz
itaisteinherz1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent PRs & issues

Quiet · 1 discussion · Last activity 5y ago
See all on GitHub →
sindresorhus
Add an option to allow certain modules to search upwardsOpenIssue

I had the need to allow a specific module to require upwards, so I added a private option in https://github.com/sindresorhus/strict-import/commit/64ac0d0530d5fe0f35bf33665f8e3ad16da6beb5. I made it private because I'm not totally happy with it. It only works for top-level imports. So you can allow to be searched upwards by including in the option, but if imports a module name , there's no way to allow specifically, other than allowing any module from . Context: https://github.com/lukechilds/hyperdex/commit/d54a47c921e053620a76c57c9e3534f4f2dbe42e

sindresorhus · 1y ago

Recent fixes

View closed PRs →
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
itaisteinherz
Simplify while loopMergedPR
itaisteinherz · 8y ago
Structured data for AI agents

Repository: sindresorhus/strict-import. Description: Prevent `require` from searching upwards for required modules Stars: 94, Forks: 2. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: import, node-modules, nodejs, npm-package, require. Open PRs: 0, open issues: 1. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, itaisteinherz, Richienb.

·@ofershap

Replace github.com with gitshow.dev