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
2 months ago (0.0.1)
Package root>README.md
# @spawn/git <div height=30" vertical-align="top"> <image src="https://raw.githubusercontent.com/gnomejs/gnomejs/main/assets/icon.png" alt="logo" width="60" valign="middle" /> <span>Work less. Do more. </span> </div> The `git` module provides a simple way to execute git commands. The module relies upon the [@gnome/exec][exec] module and has the same basic usage as the `Command` and `ShellCommand` class. ```typescript 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](./LICENSE.md) [exec]: https://jsr.io/@gnome/exec/doc