Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleChildProcessStderr = data => {
if (data) {
const msg = new Output().encode(
hostMsg(data.toString(), `${PROCESS_CHILD}_stderr`),
);
process.stdout.write(msg);
}
};