Skip to content

Instantly share code, notes, and snippets.


Paul Norton tripleshotsw

View GitHub Profile
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
.option('-f, --filelist [txtfile]', 'use an input file with a comma separated list of files to concat')