npmlog-file

Easily write npmlog output to a file in the same format as it logs to the screen

Usage no npm install needed!

<script type="module">
  import npmlogFile from 'https://cdn.skypack.dev/npmlog-file';
</script>

README

npmlog-file

Build Status

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.txt
logfile.write(log, 'log.txt');