Skip to content

Instantly share code, notes, and snippets.

@DivineGod
Created June 7, 2016 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DivineGod/fe3b96de6f4ae4f9e238b8f5aa27f403 to your computer and use it in GitHub Desktop.
Save DivineGod/fe3b96de6f4ae4f9e238b8f5aa27f403 to your computer and use it in GitHub Desktop.
npmlog@3 reduced test
var Logger = require('npmlog')
var express = require('express')
var app = express()
app.get('/', function(req, res) {
res.send('Hello')
})
console.log('starting server')
app.listen("8080")
{
"name": "poc-npmlog-prof",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"v2": "npm i npmlog@2 && node --prof index.js",
"v3": "npm i npmlog@3 && node --prof index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.13.4",
"npmlog": "^3.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment