console-stamp
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2145
29
0