Plato on Github
Report Home
node_modules/cli/examples/cat.js
Maintainability
78.13
Lines of code
15
Difficulty
10.29
Estimated Errors
0.09
Function weight
By Complexity
By SLOC
//#!/usr/bin/env node var cli = require('cli'); var output_file = function (file) { cli.withInput(file, function (line, sep, eof) { if (!eof) { cli.output(line + sep); } else if (cli.args.length) { output_file(cli.args.shift()); } }); }; if (cli.args.length) { output_file(cli.args.shift()); }