PATH:
opt
/
alt
/
alt-nodejs9
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
module.exports = stars 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) { var name = args.length === 1 ? args[0] : username if (er) { if (er.code === 'ENEEDAUTH' && !name) { var needAuth = new Error("'npm stars' on your own user account requires auth") needAuth.code = 'ENEEDAUTH' return cb(needAuth) } if (er.code !== 'ENEEDAUTH') return cb(er) } mapToRegistry('', npm.config, function (er, uri, auth) { if (er) return cb(er) var params = { username: name, auth: auth } npm.registry.stars(uri, params, showstars) }) }) function showstars (er, data) { if (er) return cb(er) if (data.rows.length === 0) { log.warn('stars', 'user has not starred any packages.') } else { data.rows.forEach(function (a) { output(a.value) }) } cb() } }
[-] get.js
[edit]
[-] link.js
[edit]
[-] config.js
[edit]
[+]
search
[-] view.js
[edit]
[-] whoami.js
[edit]
[-] owner.js
[edit]
[-] unpublish.js
[edit]
[-] profile.js
[edit]
[+]
install
[-] star.js
[edit]
[-] outdated.js
[edit]
[-] test.js
[edit]
[-] set.js
[edit]
[-] dedupe.js
[edit]
[-] xmas.js
[edit]
[-] search.js
[edit]
[-] team.js
[edit]
[+]
config
[-] deprecate.js
[edit]
[-] fetch-package-metadata.md
[edit]
[-] doctor.js
[edit]
[+]
auth
[-] repo.js
[edit]
[-] explore.js
[edit]
[-] prefix.js
[edit]
[-] ping.js
[edit]
[-] bin.js
[edit]
[-] bugs.js
[edit]
[-] publish.js
[edit]
[-] visnup.js
[edit]
[-] rebuild.js
[edit]
[-] completion.js
[edit]
[-] help.js
[edit]
[+]
..
[-] stop.js
[edit]
[-] update.js
[edit]
[-] substack.js
[edit]
[-] run-script.js
[edit]
[-] uninstall.js
[edit]
[-] install.js
[edit]
[-] pack.js
[edit]
[-] npm.js
[edit]
[-] dist-tag.js
[edit]
[-] fetch-package-metadata.js
[edit]
[-] help-search.js
[edit]
[-] root.js
[edit]
[-] unbuild.js
[edit]
[-] stars.js
[edit]
[-] docs.js
[edit]
[-] token.js
[edit]
[-] init.js
[edit]
[-] access.js
[edit]
[-] version.js
[edit]
[-] edit.js
[edit]
[-] ls.js
[edit]
[+]
utils
[-] restart.js
[edit]
[-] cache.js
[edit]
[-] start.js
[edit]
[-] prune.js
[edit]
[+]
doctor
[-] adduser.js
[edit]
[-] shrinkwrap.js
[edit]
[-] build.js
[edit]
[-] install-test.js
[edit]
[-] logout.js
[edit]