Socket
Socket
Sign inDemoInstall

console-me

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    console-me

Patches Node.js console log methods to add a UTC timestamp to each message


Version published
Maintainers
1
Install size
3.59 kB
Created

Readme

Source

Console-Me

Patches Node.js console log methods to add a UTC timestamp to each message

Objectives

The main objective of this project is to be extremely simple. That and to display timestamps next to each message logged using node's console logging methods. It will never depend on any other module to do its thing, therefore it doesn't have any options, and that's on purpose.

Usage

Just require it somewhere in your project before needing the timestamps:

require('console-me')

console.log('something')
// Output: [2016-04-14T14:38:45.489Z] LOG something

console.error('oops')
// Output: [2016-04-14T14:38:45.489Z] ERROR oops

The message types will be colored according to the type of logging method used:

  • red: console.error
  • yellow: console.warn
  • green: everything else

Keywords

FAQs

Last updated on 14 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc