diff options
author | Mikeal Rogers <mikeal.rogers@gmail.com> | 2010-03-23 01:50:34 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-03-23 01:58:08 +0300 |
commit | 378f7b3d6d066f5726fe66e6512f749732bb33c0 (patch) | |
tree | fb55eccde91eb2b43315e414f99f9940eaed3ceb /npm.js | |
parent | e62fccbe94bfdefae6390ec3a28bf596c03b954b (diff) |
adduser cli option, creates a couchdb user and stores new credentials locally
Diffstat (limited to 'npm.js')
-rwxr-xr-x | npm.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,9 +1,10 @@ var npm = exports, set = require("./lib/utils/set"), - get = require("./lib/utils/get"); + get = require("./lib/utils/get"), + ini = require("./lib/utils/ini"); -npm.config = {}; +npm.config = ini.getConfig(); // TODO: read configs from a conf file or cli // defaulting here is a wee bit hackish and potentially unsafe. @@ -13,7 +14,6 @@ npm.config = {}; // TODO: point this at a public js-registry instance some time soon. // This works right now by setting an /etc/hosts entry pointing // the "packages" hostname to a running instance of the js-registry -npm.config.registry = "http://registry.npmjs.org/"; [ "install" , "activate" @@ -24,6 +24,7 @@ npm.config.registry = "http://registry.npmjs.org/"; , "link" , "publish" , "tag" +, "adduser" ].forEach(function (c) { npm[c] = require("./lib/"+c); }); |