Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
gnomejs/cmd-cliThe `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
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";