utc2locale

Streaming approach from Date#toUTCString() to Date#toLocaleString().

Usage no npm install needed!

<script type="module">
  import utc2locale from 'https://cdn.skypack.dev/utc2locale';
</script>

README

utc2locale

NPM version

Streaming approach from Date#toUTCString() to Date#toLocaleString().

Install

$ npm install -g utc2locale

Usage

Run derectly

$ tail -f /path/to/your/log | utc2locale

or

$ utc2locale </path/to/your/log

Use with nodejs

var Transformer = require('utc2locale');
fileStream.pipe(new Transformer).pipe(process.stdout);