Socket
Book a DemoInstallSign in
Socket

@edgeone/framework-detect

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edgeone/framework-detect

A framework detection library for web projects

0.0.1
latest
npmnpm
Version published
Weekly downloads
63
Maintainers
3
Weekly downloads
 
Created
Source

framework-detect

一个用于检测Web项目框架的TypeScript库。

安装

tnpm install @tencent/framework-detect

使用方法

import { describeFramework } from '@tencent/framework-detect';

// 检测项目框架
const frameworkInfo = await describeFramework('./my-project');
console.log(frameworkInfo);

API

describeFramework(projectRoot: string): Promise<FrameworkInfo>

检测指定目录中的Web项目框架。

参数:

  • projectRoot (string): 项目根目录路径

返回值:

  • Promise<FrameworkInfo>: 框架信息对象

返回对象结构:

interface FrameworkInfo {
  Framework: string;    // 框架名称
  BuildCmd: string;     // 构建命令
  InstallCmd: string;   // 安装命令
  OutputDir: string;    // 输出目录
  IconPath?: string;    // 图标路径(可选)
}

支持的框架

  • Next.js
  • Gatsby
  • Remix
  • React Router
  • Astro
  • Hexo
  • Eleventy
  • Docusaurus
  • Solid
  • Vue
  • Angular
  • Svelte
  • React
  • Nuxt
  • Qwik
  • Hono
  • Vite

开发

# 安装依赖
npm install

# 构建
npm run build

# 运行测试
npm run test

Keywords

framework

FAQs

Package last updated on 04 Sep 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.