Skip to main content

Built and signed on GitHub Actions

The sudo-cli module provides a simple way to execute sudo commands.

This package works with Bun, Node.js, Deno
JSR Score
100%
Published
3 weeks ago (0.0.0)

@gnome/sudo-cli

logo Work less. Do more.

Overview

The sudo-cli module provides a simple way to execute sudo commands.

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

Basic Usage

import { sudo } from "@gnome/sudo-cli";
 
const result = sudo("--version");
console.log(result.code);
console.log(result.text());

MIT License

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @gnome/sudo-cli

Import symbol

import * as mod from "@gnome/sudo-cli";

Add Package

npx jsr add @gnome/sudo-cli

Import symbol

import * as mod from "@gnome/sudo-cli";

Add Package

yarn dlx jsr add @gnome/sudo-cli

Import symbol

import * as mod from "@gnome/sudo-cli";

Add Package

pnpm dlx jsr add @gnome/sudo-cli

Import symbol

import * as mod from "@gnome/sudo-cli";

Add Package

bunx jsr add @gnome/sudo-cli

Import symbol

import * as mod from "@gnome/sudo-cli";