Skip to content

dorumrr/npmjs-console-log-timestamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

Automatically adds timestamp prefix to console.log() output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published