Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
browserslist-load-config
Advanced tools
This package is a fork of browserslist.loadConfig with some modifications to make it faster.
Compare to browserslist
, this package has the following improvements and differences:
See bundlephobia - browserslist-load-config vs bundlephobia - browserslist for bundle size comparison.
See packagephobia - browserslist-load-config vs packagephobia - browserslist for install size comparison.
Thanks Andrey Sitnik for creating the Browserslist which is under MIT License.
Install:
npm add browserslist-load-config -D
import { loadConfig } from "browserslist-load-config";
// Pass a path to the configuration file
const config = loadConfig({
/**
* Specify the directory where the configuration file is located
*/
path: "./path/to/project/root",
/**
* Specify the environment to load
* @default "production"
*/
env: "production",
});
// Pass a browserslist config directly
const config = loadConfig({
/**
* Specify the directory where the configuration file is located
*/
path: "./path/to/project/root",
/**
* Specify the environment to load
* @default "production"
*/
env: "production",
});
console.log(config);
/**
* [
* // browserslist config
* ]
*/
If both config
and path
are provided, config
will be used.
import { findConfig } from "browserslist-load-config";
const config = findConfig("./path/to/project/root");
console.log(config);
/**
* {
* defaults: [
* // default browserslist config
* ],
* development: [
* // development browserslist config
* ],
* production: [
* // production browserslist config
* ],
* }
*/
MIT.
FAQs
<img src="https://img.shields.io/badge/Lice
The npm package browserslist-load-config receives a total of 428 weekly downloads. As such, browserslist-load-config popularity was classified as not popular.
We found that browserslist-load-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.