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
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-07-17 00:28:37 +0400
committerisaacs <i@izs.me>2012-07-17 00:28:37 +0400
commit1977584a975db9fbc2cd36b34ea2e4743f465dd4 (patch)
tree7918d085aeabdf2cd4416277b2ed626d9ca1485b /lib/star.js
parent4431b14b1eedfa4fd03edc6e2c8388096ee859e7 (diff)
Replace lib/utils/output.js with console.log
Diffstat (limited to 'lib/star.js')
-rw-r--r--lib/star.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/star.js b/lib/star.js
index fc4fb96f1..33b12471a 100644
--- a/lib/star.js
+++ b/lib/star.js
@@ -5,7 +5,6 @@ var npm = require("./npm.js")
, registry = npm.registry
, log = require("npmlog")
, asyncMap = require("slide").asyncMap
- , output = require("./utils/output.js")
star.usage = "npm star <package> [pkg, pkg, ...]\n"
+ "npm unstar <package> [pkg, pkg, ...]"
@@ -25,7 +24,7 @@ function star (args, cb) {
asyncMap(args, function (pkg, cb) {
registry.star(pkg, using, function (er, data, raw, req) {
if (!er) {
- output.write(s + " "+pkg, npm.config.get("outfd"))
+ console.log(s + " "+pkg)
log.verbose("star", data)
}
cb(er, data, raw, req)