Gathering detailed insights and metrics for @istanbuljs/load-nyc-config
Gathering detailed insights and metrics for @istanbuljs/load-nyc-config
Gathering detailed insights and metrics for @istanbuljs/load-nyc-config
Gathering detailed insights and metrics for @istanbuljs/load-nyc-config
Utility function to load nyc configuration
npm install @istanbuljs/load-nyc-config
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2 Stars
32 Commits
7 Forks
6 Watching
2 Branches
3 Contributors
Updated on 11 Dec 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-8.7%
4,338,881
Compared to previous day
Last week
-1.2%
24,606,597
Compared to previous week
Last month
8.2%
105,492,663
Compared to previous month
Last year
14.3%
1,129,745,413
Compared to previous year
5
4
The utility function which NYC uses to load configuration. This can be used by outside programs to calculate the configuration. Command-line arguments are not considered by this function.
1const {loadNycConfig} = require('@istanbuljs/load-nyc-config'); 2 3(async () { 4 console.log(await loadNycConfig()); 5})();
Type: string
Default: cwd
from parent nyc process or process.cwd()
Type: string
Default: undefined
Name of the file containing nyc configuration.
This can be a relative or absolute path.
Relative paths can exist at options.cwd
or any parent directory.
If an nycrc is specified but cannot be found an exception is thrown.
If no nycrc option is provided the default priority of config files are:
Configuration is first loaded from package.json
if found, this serves as the package
defaults. These options can be overridden by an nycrc if found. Arrays are not merged,
so if package.json
sets "require": ["@babel/register"]
and .nycrc
sets "require": ["esm"]
the effective require setting will only include "esm"
.
1const {isLoading} = require('@istanbuljs/load-nyc-config'); 2 3console.log(isLoading());
In some cases source transformation hooks can get installed before the configuration is loaded. This allows hooks to ignore source loads that occur during configuration load.
@istanbuljs/load-nyc-config
for enterpriseAvailable as part of the Tidelift Subscription.
The maintainers of @istanbuljs/load-nyc-config
and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/30 approved changesets -- 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-25
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