Skip to main content

Built and signed on GitHub Actions

The `cmd-cli` module provides a simple way to execute windows command line scripts or files.

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
4 months ago (0.0.0)
/** * The `cmd` module provides a simple way to execute * cmd scripts using the `cmd` shell. * * The module relies upon the @gnome/exec module and * has the same basic usage as the `Command` and `ShellCommand` class. * * ## Basic Usage * * ```typescript * import { cmd } from "@gnome/cmd-cli"; * * const cmd2 = await cmd("echo 'Hello, World!'", { * stdout: 'piped', * stderr: 'piped' * }); * console.log(await cmd2.text()); * console.log(cmd2.code); * * console.log(await cmd("echo 'Hello, World!'").text()); * * console.log(await cmd("test.sh").text()); * * // runs cmd command and writes directly to console * await cmd("echo 'I am alive'").run(); ``` * @module */ export * from "./cmd.ts";