Skip to content

Instantly share code, notes, and snippets.

View tripleshotsw's full-sized avatar

Paul Norton tripleshotsw

  • Triple Shot Software, LLC
  • Seattle
View GitHub Profile
@tripleshotsw
tripleshotsw / concat.js
Created February 10, 2013 23:25
Using Node.js to create simple build tools. In this case, 'concat.js' which concatenates JS files (or, really any text files).
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')