npmlog-file Easily write npmlog output to a file in the same format as it logs to the screen Install $ npm install --save npmlog-file Usage var log = require('npmlog');var logfile = require('npmlog-file') // write everything npmlog has logged thus far to log.txtlogfile.write(log, 'log.txt');