Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleExit = code => {
if (isDir(TMPDIR_APP)) {
removeDir(TMPDIR_APP, TMPDIR);
}
if (code) {
const msg = new Output().encode(hostMsg(`exit ${code}`, "exit"));
msg && process.stdout.write(msg);
}
};