console-log-timestamp
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

console-log-timestamp

Automatically adds timestamp prefix to all console.log()

From:

Server started on port 3737

to:

2020-06-17 17:30:25.4320 (Europe/London) ==> Server is runing on port 3737

Installation

npm i console-log-timestamp

Usage

require('console-log-timestamp')();

If you need a specific timezone, just pass it as an argument:

require('console-log-timestamp')('Europe/Paris');

Package Sidebar

Install

npm i console-log-timestamp

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

1.81 kB

Total Files

5

Last publish

Collaborators

  • dorumrr