unjs

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
UnJS (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与服务器

TopicDescriptionReference
H3 FrameworkMinimal HTTP framework for high performance and portabilitycore-h3
Nitro ServerUniversal web server framework that runs anywherecore-nitro
ListhenElegant HTTP listener for Node.js and edge environmentscore-listhen
主题描述参考
H3 Framework用于高性能和可移植性的轻量级HTTP框架core-h3
Nitro Server可在任意环境运行的通用Web服务器框架core-nitro
Listhen适用于Node.js和边缘环境的优雅HTTP监听器core-listhen

Utilities

实用工具

TopicDescriptionReference
DefuRecursive default property assignmentcore-defu
DestrFast and secure JSON.parse alternativecore-destr
OhashFast hashing library based on murmurhash3core-ohash
PatheCross-platform path utilities (Node.js path replacement)core-pathe
UFOURL utilities for parsing, formatting, and manipulationcore-ufo
SculeString 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

构建工具

TopicDescriptionReference
UnbuildUnified JavaScript build systemcore-unbuild
MkdistGenerate distribution files from sourcecore-mkdist
UnpluginUnified plugin system for Vite, Rollup, webpack, esbuild, and morecore-unplugin
主题描述参考
Unbuild统一的JavaScript构建系统core-unbuild
Mkdist从源码生成分发文件的工具core-mkdist
Unplugin适用于Vite、Rollup、webpack、esbuild等的统一插件系统core-unplugin

Features

功能特性

Storage & Data

存储与数据

TopicDescriptionReference
UnstorageAsync key-value storage API with multiple driversfeatures-unstorage
主题描述参考
Unstorage支持多驱动的异步键值存储APIfeatures-unstorage

Environment & Runtime

环境与运行时

TopicDescriptionReference
UnenvConvert JavaScript code to be runtime agnosticfeatures-unenv
Std-envStandard environment variables utilitiesfeatures-std-env
主题描述参考
Unenv将JavaScript代码转换为与运行时无关的工具features-unenv
Std-env标准环境变量工具features-std-env

HTTP Client

HTTP客户端

TopicDescriptionReference
OfetchBetter fetch API for Node.js, browser, and workersfeatures-ofetch
主题描述参考
Ofetch适用于Node.js、浏览器和Worker的增强版fetch APIfeatures-ofetch

Routing

路由

TopicDescriptionReference
Radix3Lightweight and fast router based on Radix Treefeatures-radix3
主题描述参考
Radix3基于Radix Tree的轻量级快速路由工具features-radix3

CLI & Tools

CLI与工具

TopicDescriptionReference
CittyElegant CLI builder with type-safe commandsfeatures-citty
GigetDownload templates and git repositoriesfeatures-giget
主题描述参考
Citty带有类型安全命令的优雅CLI构建器features-citty
Giget下载模板和Git仓库的工具features-giget

Hooks & Context

钩子与上下文

TopicDescriptionReference
HookableAwaitable hooks system for plugins and extensionsfeatures-hookable
UnctxComposables pattern in vanilla JavaScriptfeatures-unctx
主题描述参考
Hookable适用于插件和扩展的可等待钩子系统features-hookable
Unctx原生JavaScript中的可组合模式工具features-unctx

Crypto & Security

加密与安全

TopicDescriptionReference
UncryptoUniversal crypto API for Node.js, browser, and edgefeatures-uncrypto
主题描述参考
Uncrypto适用于Node.js、浏览器和边缘环境的通用加密APIfeatures-uncrypto

Module System

模块系统

TopicDescriptionReference
MllyECMAScript module utilities for Node.jsfeatures-mlly
UnimportAuto-import APIs in modulesfeatures-unimport
主题描述参考
Mlly适用于Node.js的ECMAScript模块工具features-mlly
Unimport模块中的API自动导入工具features-unimport

Type System

类型系统

TopicDescriptionReference
UntypedGenerate types and markdown from config objectsfeatures-untyped
主题描述参考
Untyped从配置对象生成类型和Markdown的工具features-untyped

Logging & Console

日志与控制台

TopicDescriptionReference
ConsolaElegant console wrapper with multiple reportersfeatures-consola
主题描述参考
Consola带有多报告器的优雅控制台包装器features-consola

Documentation & Markdown

文档与Markdown

TopicDescriptionReference
AutomdAutomated markdown maintainerfeatures-automd
ChangelogenGenerate beautiful changelogs using conventional commitsfeatures-changelogen
MdboxSimple markdown utilitiesfeatures-mdbox
UndocsMinimal documentation theme and CLI for UnJS projectsfeatures-undocs
主题描述参考
Automd自动化Markdown维护工具features-automd
Changelogen使用约定式提交生成美观变更日志的工具features-changelogen
Mdbox简单的Markdown工具features-mdbox
Undocs适用于UnJS项目的轻量级文档主题和CLIfeatures-undocs

Configuration

配置

TopicDescriptionReference
C12Smart configuration loaderfeatures-c12
ConfboxCompact and high quality YAML, TOML, JSONC and JSON5 parsersfeatures-confbox
Rc9Read/write config couldn't be easierfeatures-rc9
主题描述参考
C12智能配置加载器features-c12
Confbox紧凑且高质量的YAML、TOML、JSONC和JSON5解析器features-confbox
Rc9简化配置读写操作的工具features-rc9

HTTP & WebSocket

HTTP与WebSocket

TopicDescriptionReference
HttpxyFull-featured HTTP and WebSocket proxy for Node.jsfeatures-httpxy
CrosswsCross-platform WebSocket servers for Node.js, Deno, Bun and Cloudflare Workersfeatures-crossws
Cookie-esESM cookie serializer and deserializerfeatures-cookie-es
主题描述参考
Httpxy适用于Node.js的全功能HTTP和WebSocket代理features-httpxy
Crossws适用于Node.js、Deno、Bun和Cloudflare Workers的跨平台WebSocket服务器features-crossws
Cookie-esESM格式的Cookie序列化和反序列化工具features-cookie-es

Image Processing

图像处理

TopicDescriptionReference
IPXHigh performance, secure and easy to use image proxy based on Sharp and libvipsfeatures-ipx
Image-metaDetect image type and size using pure JavaScriptfeatures-image-meta
Jimp-compactLightweight version of Jimp - image processing libraryfeatures-jimp-compact
FontaineAutomatic font fallback based on font metricsfeatures-fontaine
主题描述参考
IPX基于Sharp和libvips的高性能、安全且易用的图片代理features-ipx
Image-meta使用纯JavaScript检测图片类型和尺寸的工具features-image-meta
Jimp-compactJimp图像处理库的轻量级版本features-jimp-compact
Fontaine基于字体指标的自动字体回退工具features-fontaine

Code Generation & AST

代码生成与AST

TopicDescriptionReference
MagicastProgrammatically modify JavaScript and TypeScript source codesfeatures-magicast
Magic-regexpA compiled-away, type-safe, readable RegExp alternativefeatures-magic-regexp
Knitwork-XUtilities to generate safe JavaScript code (actively maintained fork)features-knitwork
JitiRuntime TypeScript and ESM support for Node.jsfeatures-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

数据库与存储

TopicDescriptionReference
Db0Lightweight SQL connectorfeatures-db0
MongozZero config MongoDB serverfeatures-mongoz
主题描述参考
Db0轻量级SQL连接器features-db0
Mongoz零配置MongoDB服务器features-mongoz

Utilities

实用工具

TopicDescriptionReference
Fs-memoEasy persisted memo object for Node.jsfeatures-fs-memo
Get-port-pleaseGet an available open portfeatures-get-port-please
Perfect-debounceDebounce promise-returning and async functionsfeatures-perfect-debounce
Serve-placeholderSmart placeholder for missing assetsfeatures-serve-placeholder
Theme-colorsEasily generate color shades for themesfeatures-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

包管理

TopicDescriptionReference
NypmUnified package manager for Node.jsfeatures-nypm
Pkg-typesNode.js utilities and TypeScript definitions for package.json and tsconfig.jsonfeatures-pkg-types
Bundle-runnerRun webpack bundles in Node.js with optional VM sandboxingfeatures-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

TopicDescriptionReference
UnheadUniversal document head tag managerfeatures-unhead
UnghUnlimited access to GitHub APIfeatures-ungh
UnpdfUtilities to work with PDFs in Node.js, browser and workersfeatures-unpdf
UnwasmWebAssembly tools for JavaScriptfeatures-unwasm
UqrGenerate QR Code universally, in any runtime, to ANSI, Unicode or SVGfeatures-uqr
UntunTunnel your local HTTP(s) server to the world powered by Cloudflare Quick Tunnelsfeatures-untun
Node-fetch-nativeA better redistribution of node-fetchfeatures-node-fetch-native
主题描述参考
Unhead通用文档头部标签管理器features-unhead
Ungh无限制访问GitHub API的工具features-ungh
Unpdf适用于Node.js、浏览器和Worker的PDF处理工具features-unpdf
UnwasmJavaScript的WebAssembly工具features-unwasm
Uqr在任意运行时生成ANSI、Unicode或SVG格式二维码的工具features-uqr
Untun基于Cloudflare Quick Tunnels的本地HTTP(s)服务器内网穿透工具features-untun
Node-fetch-nativenode-fetch的优化重分发版本features-node-fetch-native

Build Tools (Additional)

构建工具(补充)

TopicDescriptionReference
WebpackbarElegant progress bar and profiler for webpack 3, 4 and 5features-webpackbar
NanotarTiny and fast Tar utils for any JavaScript runtimefeatures-nanotar
主题描述参考
Webpackbar适用于webpack 3、4和5的优雅进度条和分析工具features-webpackbar
Nanotar适用于任意JavaScript运行时的轻量快速Tar工具features-nanotar