const cmd = 'ls'; let params = []; if (options.all) params.push('a'); if (options.long) params.push('l'); let fullCommand = params.length ? cmd + ' -' + params.join('') : cmd if (directory) fullCommand += ' ' + directory;
Writing Command-Line Applications in NodeJS
Peter Benjamin
44313

Any reason not to indent?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.