Socket
Book a DemoInstallSign in
Socket

@lcap/nasl-language-server-core

Package Overview
Dependencies
Maintainers
18
Versions
456
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lcap/nasl-language-server-core

NetEase Application Specific Language

latest
npmnpm
Version
4.1.0-creator.9
Version published
Maintainers
18
Created
Source

Nasl Language Server

Nasl 语言服务

描述

NetEase Application Specific Language (NASL) 语言服务器核心包,提供 NASL 语言的类型检查、语法分析和其他语言服务功能。

技术栈

核心技术

  • TypeScript 5.4.4 - 主要开发语言
  • Node.js 18+ - 运行环境

主要依赖

  • @lcap/nasl-concepts - NASL 概念定义
  • @lcap/nasl-types - NASL 类型系统
  • @lcap/nasl-utils - NASL 工具库
  • decimal.js - 精确数值计算
  • json5 - JSON5 格式支持
  • lodash - 实用工具库
  • mnemonist - 数据结构库

开发工具

  • Vitest 3.2.4 - 现代测试框架
  • Chai 4.3.7 - 断言库
  • Mocha - 传统测试框架(通过 @lcap/nasl-test-toolkit)

开发

构建

# 清理输出目录
npm run clear

# 构建项目
npm run build

# 监听模式构建
npm run watch

测试

Vitest 测试(推荐)

# 运行所有 Vitest 测试
npm run test:vite

# 监听模式运行测试
npm run test:watch

# 启动测试 UI 界面
npm run test:ui

Mocha 测试 (遗留)

注意:

  • Mocha 测试框架已经废弃,对于新的单元测试的编写,请使用 Vitest 测试框架。
  • Mocha 测试框架的测试用例,请迁移到 Vitest 测试框架。请参考 TESTING_MIGRATION.md 文件,让LLM自动化地完成迁移。
# 运行标准 Mocha 测试套件
npm run test

# 运行应用测试
npm run test:apps

# 运行 CI 测试
npm run test:ci

# 更新测试快照
npm run test:update

# 运行性能测试
npm run test:perf

其他工具

# 压缩测试数据
npm run compress-test-data

许可证

MIT

FAQs

Package last updated on 03 Nov 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