Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
require('get-stdin')()
.then(function (data) {
process.stdout.write(data.toString(), function () {
window.close();
});
})
.catch(function (err) {
process.stdout.write(err.message + '\n', function () {
process.exit(1);
});
});
console.log(result);
}
});
}
if (process.stdin.isTTY) {
if (argv._.length === 0 && argv.input === undefined || argv.help) {
yargs.showHelp('log');
} else if (argv.input) {
const fs = require('fs');
run(fs.readFileSync(argv.input, 'utf8').replace(/^\ufeff/g, ''));
} else {
run(argv._[0]);
}
} else {
require('get-stdin')().then(run);
}