{"size": 1270, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "rasmusvhansen/concat-from-json", "max_stars_repo_stars_event_min_datetime": "2018-10-30T21:45:27.000Z", "max_stars_repo_stars_event_max_datetime": "2018-10-30T21:45:27.000Z", "max_issues_repo_path": "index.js", "max_issues_repo_name": "rasmusvhansen/concat-from-json", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "rasmusvhansen/concat-from-json", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 42.3333333333, "max_line_length": 115, "alphanum_fraction": 0.5173228346}
#!/usr/bin/env node
var exampleTxt =
    'This will concatenate all the files in the files.json and pipe them to the file specified by the -o argument';
var stdoutTxt = 'This will concatenate all the files in the files.json and pipe them to stdout';
var argv = require('yargs')
               .option('j', {
                 alias : 'json',
                 demand : true,
                 describe : 'json file containing array of files to concatenate',
                 type : 'string'
               })
               .option('o', {
                 alias : 'output',
                 describe : 'the optional resulting file of the concatenation',
                 type : 'string'
               })
                .option('d', {
                  alias : 'debug',
                  describe : 'includes inline source maps',
                  type : 'boolean'
                })
               .usage('$0 concat-from-json -j string [-o string]')
               .example('concat-from-json -j files.json -o output.js', exampleTxt)
               .example('concat-from-json -j files.json > output.js', stdoutTxt)
               .help('help')
               .argv;

var concatFunctions = require('./concatFunctions');

concatFunctions.concatFiles(argv.j, argv.o, argv.d);