npmlog-file
Version:
Easily write npmlog output to a file in the same format as it logs to the screen
22 lines (15 loc) • 459 B
Markdown
npmlog-file
===========
[](https://travis-ci.org/tjwebb/npmlog-file)
Easily write npmlog output to a file in the same format as it logs to the screen
```sh
$ npm install --save npmlog-file
```
```js
var log = require('npmlog');
var logfile = require('npmlog-file')
// write everything npmlog has logged thus far to log.txt
logfile.write(log, 'log.txt');
```