Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function usage(subcommand, cb) {
let helpFileName = path.join(__dirname, (subcommand || "usage") + ".txt");
let helpFileStream = fs.createReadStream(helpFileName);
helpFileStream.pipe(process.stdout);
eos(helpFileStream, () => { cb({code: 0}); });
}