Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(function(res){
if(!alasql.options.stdout){
console.log(formatOutput(res));
}
process.exit(0);
}).catch(function(err){
console.log(formatOutput({error:err}));
var res = alasql(sql,params,function(res){
if(!alasql.options.stdout) console.log(res);
});
// console.log(res);