debug-timezone

Wrapper around debug, which lets you specify timezone and date format for stdout

Usage no npm install needed!

<script type="module">
  import debugTimezone from 'https://cdn.skypack.dev/debug-timezone';
</script>

README

debug-timezone

Wrapper around debug, which lets you specify timezone and date format for stdout

Installation

$ npm install debug-timezone

API

API is almost same as the original debug, you can now provide additional parameters for Timezone and Timestamp format:

const debug = require('debug-timezone')('Steve:Baller', 'DD.MM.YY', 'Europe/Lisbon')

debug('Developers! Developers! Developers!')

For formating and timezones see moment and moment-timezone packages