UNPKG

@znode/os-usage

Version:

os cpu/memory/disk usage

20 lines (19 loc) 557 B
"use strict"; // import * as cp from 'child_process'; Object.defineProperty(exports, "__esModule", { value: true }); exports.exec = void 0; // export async function exec(command: string) { // return new Promise<string>((resolve, reject) => { // cp.exec(command, (error, stdout, stderr) => { // if (error) { // return reject(error); // } // return resolve(stdout); // }); // }); // } const execa_1 = require("@znode/execa"); async function exec(command) { return execa_1.default `${command}`; } exports.exec = exec;