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
5 months ago (0.0.0)
function cmd
cmd(
script: string,
options?: ShellCommandOptions,
): CmdCliCommand

Executes a windows command line (.cmd, .bat) script using the CmdCliCommand class.

Parameters

script: string
  • The cmd script to execute.
optional
options: ShellCommandOptions
  • Optional options for the cmd command.

Return Type

A new instance of the CmdCliCommand class.

Add Package

deno add jsr:@gnome/cmd-cli

Import symbol

import { cmd } from "@gnome/cmd-cli";

---- OR ----

Import directly with a jsr specifier

import { cmd } from "jsr:@gnome/cmd-cli";

Add Package

npx jsr add @gnome/cmd-cli

Import symbol

import { cmd } from "@gnome/cmd-cli";

Add Package

yarn dlx jsr add @gnome/cmd-cli

Import symbol

import { cmd } from "@gnome/cmd-cli";

Add Package

pnpm dlx jsr add @gnome/cmd-cli

Import symbol

import { cmd } from "@gnome/cmd-cli";

Add Package

bunx jsr add @gnome/cmd-cli

Import symbol

import { cmd } from "@gnome/cmd-cli";