Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
gnomejs/spawnThe git module provides a simple way to execute git commands.
This package works with Node.js, Deno, Bun
JSR Score
100%
Published
2 months ago (0.0.1)
# @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