@ascen/execzero
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

execzero

execzero is an npm package designed to work seamlessly with ascen's zero package. This tool enables effortless system shutdowns on macOS, Windows, and Linux, providing a convenient and unified solution for controlling your PC's power state.

Installation:

  • Using npm:
npm i -g @ascen/execzero
  • Using yarn:
yarn global add @ascen/execzero
  • Using pnpm:
pnpm global add @ascen/execzero

Usage:

  • Inside File:
import execzero from "@ascen/execzero"

// Call an execzero function
execzero((err, stderr, stdout) => {
    if(!err && !stderr) {
        console.log(stdout);
    }
});
  • Inside CLI:
execzero

Package Sidebar

Install

npm i @ascen/execzero

Weekly Downloads

12

Version

1.2.0

License

MIT

Unpacked Size

5.22 kB

Total Files

6

Last publish

Collaborators

  • ascen