Socket
Socket
Sign inDemoInstall

console-stamp

Package Overview
Dependencies
1
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    console-stamp

Patch NodeJS console methods in order to add timestamp information by pattern


Version published
Weekly downloads
210K
increased by17.65%
Maintainers
1
Install size
24.0 kB
Created
Weekly downloads
 

Readme

Source

console-stamp

Patch Node.js console methods in order to add timestamp information by pattern.

Inspired by FGRibreau/node-nice-console

Usage

Installing

npm install console-stamp

Patching the console

// Patch console.x methods in order to add timestamp information
require("console-stamp")(console, "HH:mm:ss.l");

console.log("Hello World!");
// -> 14:02:48.062 Hello World!

var port = 8080;
console.log("Server running at port %d", port);
// -> 16:02:35.325 Server running at port 8080

See more about timestamp patterns at felixges excellent dateformat

Keywords

FAQs

Last updated on 19 Feb 2013

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