Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

console-stamp

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-stamp - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

main.js

@@ -29,3 +29,3 @@ /**

args.unshift( date );
typeof args[0] === "string" ? args[0] = date + " " + args[0] : args.unshift( date );

@@ -32,0 +32,0 @@ return org.apply(con, args);

{
"name": "console-stamp",
"main": "main",
"version": "0.1.0",
"version": "0.1.1",
"author": {

@@ -17,2 +17,6 @@ "name": "Ståle Raknes",

],
"repository" : {
"type" : "git",
"url" : "http://github.com/starak/node-console-stamp.git"
},
"license": "MIT",

@@ -19,0 +23,0 @@ "dependencies" : {

@@ -1,2 +0,2 @@

# node-console-stamp
# console-stamp

@@ -7,6 +7,10 @@ Patch Node.js console methods in order to add timestamp information by pattern.

## Usage
## Usage ##
See more about timestamp patterns at [felixges][felixge] excellent [dateformat][dateformat]
### Installing ###
npm install console-stamp
### Patching the console ###
// Patch console.x methods in order to add timestamp information

@@ -17,3 +21,8 @@ require("console-stamp")(console, "HH:mm:ss.l");

// -> 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][felixge] excellent [dateformat][dateformat]

@@ -20,0 +29,0 @@ [dateformat]: https://github.com/felixge/node-dateformat

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc