Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Norton tripleshotsw

View GitHub Profile
@tripleshotsw
tripleshotsw / concat.js
Created Feb 10, 2013
Using Node.js to create simple build tools. In this case, 'concat.js' which concatenates JS files (or, really any text files).
View concat.js
var fs = require('fs');
var os = require('os');
var program = require('commander');
var importList = [];
//Options -- also sets up automatic --help message/usage info
program
.version('0.0.1')
.option('-f, --filelist [txtfile]', 'use an input file with a comma separated list of files to concat')
You can’t perform that action at this time.