
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@qlover/scripts-context
Advanced tools
scripts-context 是一个用于管理和执行脚本的工具包,提供了配置搜索、日志记录、命令执行等功能。它旨在为脚本执行提供统一的上下文环境。
npm i @qlover/scripts-context
# or
yarn add @qlover/scripts-context
# or
pnpm add @qlover/scripts-context
import { FeScriptContext } from '@qlover/scripts-context';
// 创建脚本上下文
const context = new FeScriptContext({
verbose: true, // 启用详细日志
dryRun: false // 实际执行命令
});
// 使用 logger
context.logger.info('开始执行脚本');
context.logger.error('发生错误');
// 使用 shell 执行命令
await context.shell.exec('npm run build');
import { ConfigSearch } from '@qlover/scripts-context';
const configSearch = new ConfigSearch({
name: 'myapp',
defaultConfig: { port: 3000 }
});
const config = configSearch.config;
console.log(config.port); // => 3000
欢迎对 scripts-context 进行贡献!请确保在提交代码前运行所有测试,并遵循项目的代码风格指南。
FAQs
A scripts context for frontwork
The npm package @qlover/scripts-context receives a total of 74 weekly downloads. As such, @qlover/scripts-context popularity was classified as not popular.
We found that @qlover/scripts-context demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.