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

log-timestamp-moment

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-timestamp-moment - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

3

log-timestamp.js
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"
}
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