MCPcopy Index your code
hub / github.com/developit/microbundle / runCommand

Function runCommand

test/fixtures/basic-node-internals/src/index.js:3–13  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

1import { exec } from 'child_process';
2
3export function runCommand(cmd) {
4 return new Promise((resolve, reject) => {
5 exec(cmd, (error, stdout, stderr) => {
6 if (error) {
7 reject(error);
8 }
9
10 resolve(stdout || stderr);
11 });
12 });
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…