MCPcopy Index your code
hub / github.com/cookpete/react-player / cmd

Function cmd

scripts/tester/tester.js:50–62  ·  view source on GitHub ↗
(command, opts = {})

Source from the content-addressed store, hash-verified

48}
49
50async function cmd(command, opts = {}) {
51 command = command.trim().replace(/\s+/g, ' ');
52
53 if (opts.verbose) console.log(`${command}`);
54
55 const { stdout, stderr } = await asyncExec(command);
56
57 if (stderr) {
58 console.error(`\n${stderr}`);
59 }
60
61 return stdout.trim();
62}

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68