Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const exitWithSuccess = async message => {
if (message) {
console.log(chalk.green(message)); // eslint-disable-line no-console
}
await logger.close();
await killAllChildProcesses();
process.exit(0);
};