Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
gnomejs/spawnThe `choco` module provides a simple way to execute choco commands.
This package works with Node.js, Deno, Bun
JSR Score
100%
Published
3 months ago (0.0.1)
import { Command, type CommandArgs, type CommandOptions } from "jsr:@gnome/exec@^0.5.1"; import { pathFinder } from "jsr:/@gnome/exec@^0.5.1/path-finder"; pathFinder.set("choco", { name: "choco", windows: [ "${ALLUSERSPROFILE}\\chocolatey\\bin\\choco.exe", "${ChocolateyInstall}\\bin\\choco.exe", ], }); /** * Represents a choco command. */ export class ChocoCommand extends Command { /** * Creates a new instance of the `ttCliCommand` class. * @param args The command arguments. * @param options The command options. */ constructor(args?: CommandArgs, options?: CommandOptions) { super("choco", args, options); } } /** * Creates a new instance of the ChocoCommand class. * @param args - The command arguments. * @param options - The command options. * @returns An instance of the ChocoCommand class. */ export function choco(args?: CommandArgs, options?: CommandOptions): ChocoCommand { return new ChocoCommand(args, options); }