Gathering detailed insights and metrics for import-local-file
Gathering detailed insights and metrics for import-local-file
Gathering detailed insights and metrics for import-local-file
Gathering detailed insights and metrics for import-local-file
npm install import-local-file
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
154 Stars
30 Commits
11 Forks
7 Watching
1 Branches
8 Contributors
Updated on 18 Sept 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-88.7%
111
Compared to previous day
Last week
78.2%
4,552
Compared to previous week
Last month
91.4%
8,929
Compared to previous month
Last year
-31.8%
44,899
Compared to previous year
2
Let a globally installed package use a locally installed version of itself if available
Useful for CLI tools that want to defer to the user's locally installed version when available, but still work if it's not installed locally. For example, AVA and XO uses this method.
1npm install import-local
1import importLocal from 'import-local'; 2 3if (importLocal(import.meta.url)) { 4 console.log('Using local version of this package'); 5} else { 6 // Code for both global and local version hereā¦ 7}
You can also pass in __filename
when used in a CommonJS context.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 8/30 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More