Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
callSync(cmd: string) {
p.stdin.write(`${cmd}\n`);
let data: string;
p.stdout.once("data", d => {
data = d.toString();
});
while (!data) deasync.roo;
deasync.loopWhile(() => !data);
return data;
}