unjs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUnJS (Unified JavaScript) is an ecosystem of high-quality, single-purpose JavaScript libraries and tools designed to work together and independently across any environment. These skills cover the core packages and their practical usage patterns for building universal JavaScript applications.
The skill is based on UnJS website, generated at 2026-01-31.
UnJS(Unified JavaScript)是一个由高质量、单一用途的JavaScript库和工具组成的生态系统,可在任意环境中协同或独立运行。本技能涵盖了构建通用JavaScript应用所需的核心包及其实际使用模式。
本技能基于UnJS官网生成,生成时间:2026-01-31。
Core References
核心参考
HTTP & Server
HTTP与服务器
| Topic | Description | Reference |
|---|---|---|
| H3 Framework | Minimal HTTP framework for high performance and portability | core-h3 |
| Nitro Server | Universal web server framework that runs anywhere | core-nitro |
| Listhen | Elegant HTTP listener for Node.js and edge environments | core-listhen |
| 主题 | 描述 | 参考 |
|---|---|---|
| H3 Framework | 用于高性能和可移植性的轻量级HTTP框架 | core-h3 |
| Nitro Server | 可在任意环境运行的通用Web服务器框架 | core-nitro |
| Listhen | 适用于Node.js和边缘环境的优雅HTTP监听器 | core-listhen |
Utilities
实用工具
| Topic | Description | Reference |
|---|---|---|
| Defu | Recursive default property assignment | core-defu |
| Destr | Fast and secure JSON.parse alternative | core-destr |
| Ohash | Fast hashing library based on murmurhash3 | core-ohash |
| Pathe | Cross-platform path utilities (Node.js path replacement) | core-pathe |
| UFO | URL utilities for parsing, formatting, and manipulation | core-ufo |
| Scule | String case conversion utilities (camelCase, kebab-case, etc.) | core-scule |
| 主题 | 描述 | 参考 |
|---|---|---|
| Defu | 递归默认属性赋值工具 | core-defu |
| Destr | 快速且安全的JSON.parse替代工具 | core-destr |
| Ohash | 基于murmurhash3的快速哈希库 | core-ohash |
| Pathe | 跨平台路径工具(Node.js path模块替代方案) | core-pathe |
| UFO | 用于解析、格式化和操作URL的工具 | core-ufo |
| Scule | 字符串大小写转换工具(支持camelCase、kebab-case等) | core-scule |
Build Tools
构建工具
| Topic | Description | Reference |
|---|---|---|
| Unbuild | Unified JavaScript build system | core-unbuild |
| Mkdist | Generate distribution files from source | core-mkdist |
| Unplugin | Unified plugin system for Vite, Rollup, webpack, esbuild, and more | core-unplugin |
| 主题 | 描述 | 参考 |
|---|---|---|
| Unbuild | 统一的JavaScript构建系统 | core-unbuild |
| Mkdist | 从源码生成分发文件的工具 | core-mkdist |
| Unplugin | 适用于Vite、Rollup、webpack、esbuild等的统一插件系统 | core-unplugin |
Features
功能特性
Storage & Data
存储与数据
| Topic | Description | Reference |
|---|---|---|
| Unstorage | Async key-value storage API with multiple drivers | features-unstorage |
| 主题 | 描述 | 参考 |
|---|---|---|
| Unstorage | 支持多驱动的异步键值存储API | features-unstorage |
Environment & Runtime
环境与运行时
| Topic | Description | Reference |
|---|---|---|
| Unenv | Convert JavaScript code to be runtime agnostic | features-unenv |
| Std-env | Standard environment variables utilities | features-std-env |
| 主题 | 描述 | 参考 |
|---|---|---|
| Unenv | 将JavaScript代码转换为与运行时无关的工具 | features-unenv |
| Std-env | 标准环境变量工具 | features-std-env |
HTTP Client
HTTP客户端
| Topic | Description | Reference |
|---|---|---|
| Ofetch | Better fetch API for Node.js, browser, and workers | features-ofetch |
| 主题 | 描述 | 参考 |
|---|---|---|
| Ofetch | 适用于Node.js、浏览器和Worker的增强版fetch API | features-ofetch |
Routing
路由
| Topic | Description | Reference |
|---|---|---|
| Radix3 | Lightweight and fast router based on Radix Tree | features-radix3 |
| 主题 | 描述 | 参考 |
|---|---|---|
| Radix3 | 基于Radix Tree的轻量级快速路由工具 | features-radix3 |
CLI & Tools
CLI与工具
| Topic | Description | Reference |
|---|---|---|
| Citty | Elegant CLI builder with type-safe commands | features-citty |
| Giget | Download templates and git repositories | features-giget |
| 主题 | 描述 | 参考 |
|---|---|---|
| Citty | 带有类型安全命令的优雅CLI构建器 | features-citty |
| Giget | 下载模板和Git仓库的工具 | features-giget |
Hooks & Context
钩子与上下文
| Topic | Description | Reference |
|---|---|---|
| Hookable | Awaitable hooks system for plugins and extensions | features-hookable |
| Unctx | Composables pattern in vanilla JavaScript | features-unctx |
| 主题 | 描述 | 参考 |
|---|---|---|
| Hookable | 适用于插件和扩展的可等待钩子系统 | features-hookable |
| Unctx | 原生JavaScript中的可组合模式工具 | features-unctx |
Crypto & Security
加密与安全
| Topic | Description | Reference |
|---|---|---|
| Uncrypto | Universal crypto API for Node.js, browser, and edge | features-uncrypto |
| 主题 | 描述 | 参考 |
|---|---|---|
| Uncrypto | 适用于Node.js、浏览器和边缘环境的通用加密API | features-uncrypto |
Module System
模块系统
| Topic | Description | Reference |
|---|---|---|
| Mlly | ECMAScript module utilities for Node.js | features-mlly |
| Unimport | Auto-import APIs in modules | features-unimport |
| 主题 | 描述 | 参考 |
|---|---|---|
| Mlly | 适用于Node.js的ECMAScript模块工具 | features-mlly |
| Unimport | 模块中的API自动导入工具 | features-unimport |
Type System
类型系统
| Topic | Description | Reference |
|---|---|---|
| Untyped | Generate types and markdown from config objects | features-untyped |
| 主题 | 描述 | 参考 |
|---|---|---|
| Untyped | 从配置对象生成类型和Markdown的工具 | features-untyped |
Logging & Console
日志与控制台
| Topic | Description | Reference |
|---|---|---|
| Consola | Elegant console wrapper with multiple reporters | features-consola |
| 主题 | 描述 | 参考 |
|---|---|---|
| Consola | 带有多报告器的优雅控制台包装器 | features-consola |
Documentation & Markdown
文档与Markdown
| Topic | Description | Reference |
|---|---|---|
| Automd | Automated markdown maintainer | features-automd |
| Changelogen | Generate beautiful changelogs using conventional commits | features-changelogen |
| Mdbox | Simple markdown utilities | features-mdbox |
| Undocs | Minimal documentation theme and CLI for UnJS projects | features-undocs |
| 主题 | 描述 | 参考 |
|---|---|---|
| Automd | 自动化Markdown维护工具 | features-automd |
| Changelogen | 使用约定式提交生成美观变更日志的工具 | features-changelogen |
| Mdbox | 简单的Markdown工具 | features-mdbox |
| Undocs | 适用于UnJS项目的轻量级文档主题和CLI | features-undocs |
Configuration
配置
| Topic | Description | Reference |
|---|---|---|
| C12 | Smart configuration loader | features-c12 |
| Confbox | Compact and high quality YAML, TOML, JSONC and JSON5 parsers | features-confbox |
| Rc9 | Read/write config couldn't be easier | features-rc9 |
| 主题 | 描述 | 参考 |
|---|---|---|
| C12 | 智能配置加载器 | features-c12 |
| Confbox | 紧凑且高质量的YAML、TOML、JSONC和JSON5解析器 | features-confbox |
| Rc9 | 简化配置读写操作的工具 | features-rc9 |
HTTP & WebSocket
HTTP与WebSocket
| Topic | Description | Reference |
|---|---|---|
| Httpxy | Full-featured HTTP and WebSocket proxy for Node.js | features-httpxy |
| Crossws | Cross-platform WebSocket servers for Node.js, Deno, Bun and Cloudflare Workers | features-crossws |
| Cookie-es | ESM cookie serializer and deserializer | features-cookie-es |
| 主题 | 描述 | 参考 |
|---|---|---|
| Httpxy | 适用于Node.js的全功能HTTP和WebSocket代理 | features-httpxy |
| Crossws | 适用于Node.js、Deno、Bun和Cloudflare Workers的跨平台WebSocket服务器 | features-crossws |
| Cookie-es | ESM格式的Cookie序列化和反序列化工具 | features-cookie-es |
Image Processing
图像处理
| Topic | Description | Reference |
|---|---|---|
| IPX | High performance, secure and easy to use image proxy based on Sharp and libvips | features-ipx |
| Image-meta | Detect image type and size using pure JavaScript | features-image-meta |
| Jimp-compact | Lightweight version of Jimp - image processing library | features-jimp-compact |
| Fontaine | Automatic font fallback based on font metrics | features-fontaine |
| 主题 | 描述 | 参考 |
|---|---|---|
| IPX | 基于Sharp和libvips的高性能、安全且易用的图片代理 | features-ipx |
| Image-meta | 使用纯JavaScript检测图片类型和尺寸的工具 | features-image-meta |
| Jimp-compact | Jimp图像处理库的轻量级版本 | features-jimp-compact |
| Fontaine | 基于字体指标的自动字体回退工具 | features-fontaine |
Code Generation & AST
代码生成与AST
| Topic | Description | Reference |
|---|---|---|
| Magicast | Programmatically modify JavaScript and TypeScript source codes | features-magicast |
| Magic-regexp | A compiled-away, type-safe, readable RegExp alternative | features-magic-regexp |
| Knitwork-X | Utilities to generate safe JavaScript code (actively maintained fork) | features-knitwork |
| Jiti | Runtime TypeScript and ESM support for Node.js | features-jiti |
| 主题 | 描述 | 参考 |
|---|---|---|
| Magicast | 以编程方式修改JavaScript和TypeScript源码的工具 | features-magicast |
| Magic-regexp | 可编译、类型安全、可读性强的RegExp替代方案 | features-magic-regexp |
| Knitwork-X | 用于生成安全JavaScript代码的工具(持续维护的分支版本) | features-knitwork |
| Jiti | 为Node.js提供运行时TypeScript和ESM支持的工具 | features-jiti |
Database & Storage
数据库与存储
| Topic | Description | Reference |
|---|---|---|
| Db0 | Lightweight SQL connector | features-db0 |
| Mongoz | Zero config MongoDB server | features-mongoz |
| 主题 | 描述 | 参考 |
|---|---|---|
| Db0 | 轻量级SQL连接器 | features-db0 |
| Mongoz | 零配置MongoDB服务器 | features-mongoz |
Utilities
实用工具
| Topic | Description | Reference |
|---|---|---|
| Fs-memo | Easy persisted memo object for Node.js | features-fs-memo |
| Get-port-please | Get an available open port | features-get-port-please |
| Perfect-debounce | Debounce promise-returning and async functions | features-perfect-debounce |
| Serve-placeholder | Smart placeholder for missing assets | features-serve-placeholder |
| Theme-colors | Easily generate color shades for themes | features-theme-colors |
| 主题 | 描述 | 参考 |
|---|---|---|
| Fs-memo | 适用于Node.js的简易持久化记忆对象工具 | features-fs-memo |
| Get-port-please | 获取可用开放端口的工具 | features-get-port-please |
| Perfect-debounce | 支持返回Promise的异步函数防抖工具 | features-perfect-debounce |
| Serve-placeholder | 缺失资源的智能占位符工具 | features-serve-placeholder |
| Theme-colors | 轻松生成主题色阶的工具 | features-theme-colors |
Package Management
包管理
| Topic | Description | Reference |
|---|---|---|
| Nypm | Unified package manager for Node.js | features-nypm |
| Pkg-types | Node.js utilities and TypeScript definitions for package.json and tsconfig.json | features-pkg-types |
| Bundle-runner | Run webpack bundles in Node.js with optional VM sandboxing | features-bundle-runner |
| 主题 | 描述 | 参考 |
|---|---|---|
| Nypm | 适用于Node.js的统一包管理器 | features-nypm |
| Pkg-types | 适用于package.json和tsconfig.json的Node.js工具及TypeScript定义 | features-pkg-types |
| Bundle-runner | 在Node.js中运行webpack打包文件的工具,支持可选VM沙箱 | features-bundle-runner |
Web APIs
Web API
| Topic | Description | Reference |
|---|---|---|
| Unhead | Universal document head tag manager | features-unhead |
| Ungh | Unlimited access to GitHub API | features-ungh |
| Unpdf | Utilities to work with PDFs in Node.js, browser and workers | features-unpdf |
| Unwasm | WebAssembly tools for JavaScript | features-unwasm |
| Uqr | Generate QR Code universally, in any runtime, to ANSI, Unicode or SVG | features-uqr |
| Untun | Tunnel your local HTTP(s) server to the world powered by Cloudflare Quick Tunnels | features-untun |
| Node-fetch-native | A better redistribution of node-fetch | features-node-fetch-native |
| 主题 | 描述 | 参考 |
|---|---|---|
| Unhead | 通用文档头部标签管理器 | features-unhead |
| Ungh | 无限制访问GitHub API的工具 | features-ungh |
| Unpdf | 适用于Node.js、浏览器和Worker的PDF处理工具 | features-unpdf |
| Unwasm | JavaScript的WebAssembly工具 | features-unwasm |
| Uqr | 在任意运行时生成ANSI、Unicode或SVG格式二维码的工具 | features-uqr |
| Untun | 基于Cloudflare Quick Tunnels的本地HTTP(s)服务器内网穿透工具 | features-untun |
| Node-fetch-native | node-fetch的优化重分发版本 | features-node-fetch-native |
Build Tools (Additional)
构建工具(补充)
| Topic | Description | Reference |
|---|---|---|
| Webpackbar | Elegant progress bar and profiler for webpack 3, 4 and 5 | features-webpackbar |
| Nanotar | Tiny and fast Tar utils for any JavaScript runtime | features-nanotar |
| 主题 | 描述 | 参考 |
|---|---|---|
| Webpackbar | 适用于webpack 3、4和5的优雅进度条和分析工具 | features-webpackbar |
| Nanotar | 适用于任意JavaScript运行时的轻量快速Tar工具 | features-nanotar |