var path = require("path")
var home = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']
var npmbrew = path.join(home, ".npmbrew")

module.exports = {
  url : "http://registry.npmjs.org/npm/",
  pkg : require(path.join(__dirname, "../package.json")),
  dirname : {
    current : path.join(npmbrew, "current"),
    src : path.join(npmbrew, "src"),
    npm : path.join(npmbrew, "npm")
  }
}

var path = require("path")
var home = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']
var env = process.env.NODE_ENV || "production"
var dirname = (env === "development")
        ? path.join(__dirname, "../")
        : path.join(home, ".npmbrew")

module.exports = {
  env : env,
  url : "http://registry.npmjs.org/npm/",
  pkg : require(path.join(__dirname, "../package.json")),
  dirname : {
    current : path.join(dirname, "current"),
    src : path.join(dirname, "src"),
    npm : path.join(dirname, "npm")
  }
}

console.log(env)

Add env check for test
Add env check for test
