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.
koatty_config
Advanced tools
Configuration loader for Koatty
koatty_config
可以自动识别当前运行环境,并且根据运行环境自动加载相应配置(如果存在):
const env = process.env.KOATTY_ENV || process.env.NODE_ENV || "";
如果 env = production
, koatty_config 会自动加载以 _pro.ts
或 _production.ts
后缀的配置文件。
例如:
// 自动加载 config_dev.ts 或 config_development.ts
NODE_ENV=dev ts-node "test/test.ts"
koatty_config
可以自动识别命令行参数,并且自动填充到相应的配置项:
// 自动填充config.cc.dd.ee的值
NODE_ENV=dev ts-node "test/test.ts" --config.cc.dd.ee=77
koatty_config
可以自动将配置文件中使用 ${}
占位符标识的配置项替换为process.env内的同名项的值:
config.ts
export default {
...
ff: "${ff_value}"
...
}
// 自动填充ff的值
NODE_ENV=dev ff_value=999 ts-node "test/test.ts"
FAQs
Configuration loader for Koatty.
The npm package koatty_config receives a total of 4 weekly downloads. As such, koatty_config popularity was classified as not popular.
We found that koatty_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.