diff options
author | Rebecca Turner <me@re-becca.org> | 2016-04-30 02:58:25 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2016-06-16 23:44:42 +0300 |
commit | 63f153c743f9354376bfb9dad42bd028a320fd1f (patch) | |
tree | 5104789ebb01670de011d302ad60ea6c7794397e /lib/stars.js | |
parent | d28b7a7e0f102412cbef85130d0425a15f0aca7d (diff) |
output: Standardize how we write to stdout
This allows us to consistently make sure that the progress bar is hidden
before we try to write to stdout.
PR-URL: https://github.com/npm/npm/pull/13075
Credit: @iarna
Diffstat (limited to 'lib/stars.js')
-rw-r--r-- | lib/stars.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stars.js b/lib/stars.js index 4ad8f02e5..477107935 100644 --- a/lib/stars.js +++ b/lib/stars.js @@ -5,6 +5,7 @@ stars.usage = 'npm stars [<user>]' var npm = require('./npm.js') var log = require('npmlog') var mapToRegistry = require('./utils/map-to-registry.js') +var output = require('./utils/output.js') function stars (args, cb) { npm.commands.whoami([], true, function (er, username) { @@ -38,7 +39,7 @@ function stars (args, cb) { log.warn('stars', 'user has not starred any packages.') } else { data.rows.forEach(function (a) { - console.log(a.value) + output(a.value) }) } cb() |