MCPcopy Create free account
hub / github.com/ControlCplusControlV/Yul-Log / execPromise

Function execPromise

transpile.js:93–103  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

91
92//function to make exec promise
93function execPromise(cmd) {
94 return new Promise((resolve, reject) => {
95 exec(cmd, (error, stdout, stderr) => {
96 if (error) {
97 console.warn(error);
98 }
99 resolve(stdout ? stdout : stderr);
100 console.log(stdout);
101 });
102 });
103}
104
105//function to compile yulp contracts
106async function yulLog() {

Callers 1

yulLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected