百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dax

> 编程语言
开源

基于 zx 而设计的跨平台 shell 工具,用于 Deno 和 Node.js。

1.5K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于 zx 而设计的跨平台 shell 工具,用于 Deno 和 Node.js。

dax

基于 zx 而创建的跨平台 shell 工具,用于 Deno 和 Node.js。

typescript
import $ from "dax";

// run a command
await # dax
基于 [zx](https://github.com/google/zx) 而创建的跨平台 shell 工具,用于 Deno 和 Node.js。
echo 5`; // outputs: 5

// capture output
const branch = await # dax
基于 [zx](https://github.com/google/zx) 而创建的跨平台 shell 工具,用于 Deno 和 Node.js。
git rev-parse --abbrev-ref HEAD`.text();

// make a request
const data = await $.request("https://plugins.dprint.dev/info.json").json();

// prompt for input
const name = await $.prompt("What's your name?");

与 zx 的区别

  1. 跨平台 shell。
  • 使更多代码在 Windows 上运行。
  • 允许将 shell 的环境导出到当前进程。
  • 使用 deno_task_shell 的解析器。
  • 具有内置的常用命令,以提供更好的 Windows 支持。
  1. 尽可能少的全局变量或全局配置。
  • 仅有一个默认的 $ 实例,但不必使用它。
  1. 没有自定义 CLI。
  2. 除了用作 shell 脚本替代外,还可用于应用程序代码。
  3. 取名于我的猫。

Docs

Issues· 6 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言