Gathering detailed insights and metrics for @web/config-loader
Gathering detailed insights and metrics for @web/config-loader
Gathering detailed insights and metrics for @web/config-loader
Gathering detailed insights and metrics for @web/config-loader
cargo-web-loader
In order to use this loader you need to install it by cloning this repository: ``` npm i --save cargo-web-loader ``` and then add it to your webpack config accordingly: ```javascript // Cargo web crate loader { test: /Cargo.toml$/, loaders: [
@iconduit/browserconfig-loader
A Webpack loader for browserconfig.xml files
create-new-webpack-app
CLI for scaffolding webpack projects using default config, framework templates, loader or plugins templates
hybridconfig
Runtime web application configuration loader utilizing hybrid approach: using external JSON config fetching but allowing use of environment variables to overwrite values in development environment.
Guides, tools and libraries for modern web development.
npm install @web/config-loader
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@web/test-runner-playwright@0.11.1
Updated on Jun 11, 2025
@web/rollup-plugin-import-meta-assets@2.3.0
Updated on Jun 10, 2025
@web/test-runner@0.20.2
Updated on May 21, 2025
@web/storybook-utils@1.1.2
Updated on May 19, 2025
@web/mocks@1.3.2
Updated on May 14, 2025
@web/storybook-framework-web-components@0.2.1
Updated on May 13, 2025
TypeScript (56.55%)
JavaScript (41.08%)
HTML (2.32%)
MDX (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,324 Stars
3,124 Commits
309 Forks
23 Watchers
58 Branches
150 Contributors
Updated on Jul 15, 2025
Latest Version
0.3.3
Package Id
@web/config-loader@0.3.3
Unpacked Size
10.83 kB
Size
3.67 kB
File Count
25
NPM Version
10.8.2
Node Version
20.19.0
Published on
Apr 02, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Load user config files for node js projects. Supports loading config as es module or common js module, based on the user's node version, package type and file extension. Prints helpful error messages when invalid syntax combinations are used.
Follows node's logic for deciding how to load a file. .mjs
files are loaded as es module, .cjs
as common js. .js
files are loaded based on the type
field of the package.json.
1npm i --save-dev @web/config-loader
1import { readConfig, ConfigLoaderError } from '@web/config-loader'; 2// Or as a commonjs module 3// const { readConfig, ConfigLoaderError } = require('@web/config-loader'); 4 5(async () => { 6 try { 7 // will look for: 8 // process.cwd() + 'my-project.config.mjs' 9 // process.cwd() + 'my-project.config.cjs' 10 // process.cwd() + 'my-project.config.js' 11 const config = await readConfig('my-project.config'); 12 } catch (error) { 13 if (error instanceof ConfigLoaderError) { 14 // If the error is a ConfigLoaderError it has a human readable error message 15 // there is no need to print the stack trace. 16 console.error(error.message); 17 return; 18 } 19 console.error(error); 20 return; 21 } 22})();
If you want to let users define a custom config file location, you can pass this as a second optional parameter.
1const { readConfig, ConfigLoaderError } = require('@web/config-loader'); 2 3(async () => { 4 try { 5 const optionalCustomConfigFilePath = '...'; 6 const config = await readConfig('my-project.config', optionalCustomConfigFilePath); 7 } catch (error) { 8 if (error instanceof ConfigLoaderError) { 9 // If the error is a ConfigLoaderError it has a human readable error message 10 // there is no need to print the stack trace. 11 console.error(error.message); 12 return; 13 } 14 console.error(error); 15 return; 16 } 17})();
No vulnerabilities found.
Reason
30 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 2/8 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
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
Reason
project is not fuzzed
Details
Reason
25 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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