Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/npm.js
diff options
context:
space:
mode:
authorMikeal Rogers <mikeal.rogers@gmail.com>2010-03-23 01:50:34 +0300
committerisaacs <i@izs.me>2010-03-23 01:58:08 +0300
commit378f7b3d6d066f5726fe66e6512f749732bb33c0 (patch)
treefb55eccde91eb2b43315e414f99f9940eaed3ceb /npm.js
parente62fccbe94bfdefae6390ec3a28bf596c03b954b (diff)
adduser cli option, creates a couchdb user and stores new credentials locally
Diffstat (limited to 'npm.js')
-rwxr-xr-xnpm.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/npm.js b/npm.js
index f3fec48ca..30ea0e780 100755
--- a/npm.js
+++ b/npm.js
@@ -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);
});