Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
gnomejs/bashThe bash module provides a simple way to execute bash scripts or files.
This package works with Node.js, Deno, Bun


JSR Score
100%
Published
a year ago (0.0.1)
The bash
module provides a simple way to execute
PowerShell Core scripts using the bash
shell.
The module relies upon the @gnome/exec module and
has the same basic usage as the Command
and ShellCommand
class.
Basic Usage
import { bash } from "@gnome/bash"; const cmd = await bash("echo 'Hello, World!'", { stdout: 'piped', stderr: 'piped' }); console.log(await cmd.text()); console.log(cmd.code); console.log(await bash("echo 'Hello, World!'").text()); console.log(await bash("test.sh").text()); // runs bash command and writes directly to console await bash("echo 'I am alive'").run();
Built and signed on
GitHub Actions
Add Package
deno add jsr:@gnome/bash
Import symbol
import * as bash from "@gnome/bash";
Import directly with a jsr specifier
import * as bash from "jsr:@gnome/bash";
Add Package
pnpm i jsr:@gnome/bash
pnpm dlx jsr add @gnome/bash
Import symbol
import * as bash from "@gnome/bash";
Add Package
yarn add jsr:@gnome/bash
yarn dlx jsr add @gnome/bash
Import symbol
import * as bash from "@gnome/bash";
Add Package
vlt install jsr:@gnome/bash
Import symbol
import * as bash from "@gnome/bash";
Add Package
npx jsr add @gnome/bash
Import symbol
import * as bash from "@gnome/bash";
Add Package
bunx jsr add @gnome/bash
Import symbol
import * as bash from "@gnome/bash";