Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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 544 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.