WeSearch

dax — cross-platform shell tools for Deno and Node.js

·25 min read · 0 reactions · 0 comments · 7 views
#programming#software#development
⚡ TL;DR · AI summary

Dax is a cross-platform shell tool designed for Deno and Node.js, providing a consistent scripting experience across different operating systems. It includes built-in commands and features that enhance usability, such as automatic argument escaping and structured output. Dax aims to simplify shell scripting while ensuring safety and portability without native dependencies.

Key facts
Original article
Dax
Read full at Dax →
Opening excerpt (first ~120 words) tap to expand

v0.48.2 dax — shell scriptingthat runs the same everywhere. Cross-platform shell tools for Deno and Node.js inspired by zx — a friendlier $ for spawning processes, with a built-in shell, built-in commands, prompts, requests, and a Path API. JSR@david/dax npmdax Get started Shell reference Star on GitHub import $ from "dax"; $.logStep("Building"); await $`deno task build`; const env = await $.select({ message: "Where to?", options: ["staging", "production"], }); const branch = await $`git rev-parse --abbrev-ref HEAD`.text(); $.logLight(`Deploying ${branch} → ${env.value}`); await $.all([ $`deno task deploy ${env.value} api`, $`deno task deploy ${env.value} web`, ]); $.logStep("Deployed"); Highlights # Cross-platform shell Same shell on macOS, Linux, and Windows.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Dax.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Dax