Skip to main content

@spawn/git@0.0.1
Built and signed on GitHub Actions

The git module provides a simple way to execute git commands.

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
3 months ago (0.0.1)

@spawn/git

logo Work less. Do more.

The git module provides a simple way to execute git commands.

The module relies upon the @gnome/exec module and has the same basic usage as the Command and ShellCommand class.

import { git } from '@spawn/git'

// outputs directly to stdout and stderror streams.
await git("--version").run();

// pipes the output
const result = await git("--version");
console.log(result.stdout);
console.log(result.text());
console.log(result.code);

License

MIT

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@spawn/git

Import symbol

import * as mod from "@spawn/git";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@spawn/git";

Add Package

npx jsr add @spawn/git

Import symbol

import * as mod from "@spawn/git";

Add Package

yarn dlx jsr add @spawn/git

Import symbol

import * as mod from "@spawn/git";

Add Package

pnpm dlx jsr add @spawn/git

Import symbol

import * as mod from "@spawn/git";

Add Package

bunx jsr add @spawn/git

Import symbol

import * as mod from "@spawn/git";