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:
authorisaacs <i@izs.me>2010-08-10 11:57:39 +0400
committerisaacs <i@izs.me>2010-08-10 11:57:39 +0400
commit7c490f2d3a1691cf4fc038be9cdefabcd2003589 (patch)
tree6b5c64d97dd13ab95266176b2affb9f6fad9be1f /npm.js
parent3dbc28f321728ab54f0a4cae6a4576874d3d4b76 (diff)
First pass at a weird broken starter repl. Anyone wanna do the rest of it?
Diffstat (limited to 'npm.js')
-rwxr-xr-xnpm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/npm.js b/npm.js
index bfbcfaf35..661fbd917 100755
--- a/npm.js
+++ b/npm.js
@@ -49,6 +49,7 @@ var commandCache = {}
, "update"
, "update-dependents"
, "view"
+ , "repl"
].forEach(function (c) {
Object.defineProperty(npm.commands, c, { get : function () {
c = c === "list" ? "ls"
@@ -56,7 +57,7 @@ var commandCache = {}
: c
if (c in commandCache) return commandCache[c]
return commandCache[c] = require(__dirname+"/lib/"+c)
- }})
+ }, enumerable: true})
})
// Local store for package data, so it won't have to be fetched/read more than