Skip to main content

@gnome/bash@0.0.1
Built and signed on GitHub Actions

The bash module provides a simple way to execute bash scripts or files.

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
4 months ago (0.0.1)
class BashCommand
extends ShellCommand

Represents a bash command executed using the bash commandline.

Constructors

new
BashCommand(
script: string,
options?: ShellCommandOptions,
)

Creates a new instance of the bashCommand class.

Properties

readonly
ext: string

Gets the file extension associated with bash scripts.

Methods

getShellArgs(
script: string,
isFile: boolean,
): string[]

Gets the bash arguments for executing the bash script.

Static Properties

Add Package

deno add jsr:@gnome/bash

Import symbol

import { BashCommand } from "@gnome/bash";

---- OR ----

Import directly with a jsr specifier

import { BashCommand } from "jsr:@gnome/bash";

Add Package

npx jsr add @gnome/bash

Import symbol

import { BashCommand } from "@gnome/bash";

Add Package

yarn dlx jsr add @gnome/bash

Import symbol

import { BashCommand } from "@gnome/bash";

Add Package

pnpm dlx jsr add @gnome/bash

Import symbol

import { BashCommand } from "@gnome/bash";

Add Package

bunx jsr add @gnome/bash

Import symbol

import { BashCommand } from "@gnome/bash";