
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@edgeone/framework-detect
Advanced tools
一个用于检测Web项目框架的TypeScript库。
tnpm install @tencent/framework-detect
import { describeFramework } from '@tencent/framework-detect';
// 检测项目框架
const frameworkInfo = await describeFramework('./my-project');
console.log(frameworkInfo);
describeFramework(projectRoot: string): Promise<FrameworkInfo>
检测指定目录中的Web项目框架。
参数:
projectRoot
(string): 项目根目录路径返回值:
Promise<FrameworkInfo>
: 框架信息对象返回对象结构:
interface FrameworkInfo {
Framework: string; // 框架名称
BuildCmd: string; // 构建命令
InstallCmd: string; // 安装命令
OutputDir: string; // 输出目录
IconPath?: string; // 图标路径(可选)
}
# 安装依赖
npm install
# 构建
npm run build
# 运行测试
npm run test
FAQs
A framework detection library for web projects
The npm package @edgeone/framework-detect receives a total of 229 weekly downloads. As such, @edgeone/framework-detect popularity was classified as not popular.
We found that @edgeone/framework-detect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.