log-timestamp-moment
Advanced tools
Comparing version 0.3.0 to 0.3.1
var util = require('util'); | ||
const moment = require('moment'); | ||
@@ -20,3 +21,3 @@ var logprefix = require('log-prefix'); | ||
function timestamp() { | ||
return '[' + new Date().toISOString() + ']'; | ||
return '[' + moment().format('DD.MM.YYYY HH:mm:ss') + ']'; | ||
} |
@@ -40,3 +40,4 @@ { | ||
"dependencies": { | ||
"log-prefix": "0.1.1" | ||
"log-prefix": "0.1.1", | ||
"moment": "^2.24.0" | ||
}, | ||
@@ -49,2 +50,23 @@ "description": "Prepend timestamps to functions like console.log, console.warn, etc", | ||
"homepage": "https://github.com/bahamas10/node-log-timestamp#readme", | ||
"name": "log-timestamp-moment", | ||
"description": "Prepend timestamps to functions like console.log, console.warn, etc", | ||
"version": "0.3.0", | ||
"author": "Dave Eddy <dave@daveeddy.com> (http://www.daveeddy.com)", | ||
"contributors": [], | ||
"main": "./log-timestamp.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/bahamas10/node-log-timestamp.git" | ||
}, | ||
"scripts": { | ||
"test": "for f in tests/*; do echo \"$f\"; node \"$f\"; done; echo 'passed!'; exit 0" | ||
}, | ||
"dependencies": { | ||
"log-prefix": "0.1.1" | ||
}, | ||
"devDependencies": {}, | ||
"optionalDependencies": {}, | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"keywords": [ | ||
@@ -67,3 +89,3 @@ "console", | ||
}, | ||
"version": "0.3.0" | ||
"version": "0.3.1" | ||
} |
10471
37