Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
1902120114081995
Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/lib//stars.js
'use strict'
const BB = require('bluebird')
const npmConfig = require('./config/figgy-config.js')
const fetch = require('libnpm/fetch')
const log = require('npmlog')
const output = require('./utils/output.js')
const whoami = require('./whoami.js')
stars.usage = 'npm stars [<user>]'
module.exports = stars
function stars ([user], cb) {
const opts = npmConfig()
return BB.try(() => {
return (user ? BB.resolve(user) : whoami([], true, () => {})).then(usr => {
return fetch.json('/-/_view/starredByUser', opts.concat({
query: {key: `"${usr}"`} // WHY. WHY THE ""?!
}))
}).then(data => data.rows).then(stars => {
if (stars.length === 0) {
log.warn('stars', 'user has not starred any packages.')
} else {
stars.forEach(s => output(s.value))
}
})
}).catch(err => {
if (err.code === 'ENEEDAUTH') {
throw Object.assign(new Error("'npm starts' on your own user account requires auth"), {
code: 'ENEEDAUTH'
})
} else {
throw err
}
}).nodeify(cb)
}
Name
Size
Last Modified
Owner / Group
Permissions
Options
.. -- January 01 1970 00:00:00 root / root 0 auth -- March 03 2024 22:41:37 root / root 0755 config -- March 03 2024 22:41:37 root / root 0755 doctor -- March 03 2024 22:41:37 root / root 0755 install -- March 03 2024 22:41:37 root / root 0755 search -- March 03 2024 22:41:37 root / root 0755 utils -- March 03 2024 22:41:37 root / root 0755 access.js 5.525 KB October 19 2021 09:47:43 root / root 0644 adduser.js 1.285 KB October 19 2021 09:47:43 root / root 0644 audit.js 10.427 KB October 19 2021 09:47:43 root / root 0644 bin.js 0.503 KB October 19 2021 09:47:43 root / root 0644 bugs.js 0.844 KB October 19 2021 09:47:43 root / root 0644 build.js 4.438 KB October 19 2021 09:47:43 root / root 0644 cache.js 4.661 KB October 19 2021 09:47:43 root / root 0644 ci.js 0.46 KB October 19 2021 09:47:43 root / root 0644 completion.js 7.107 KB October 19 2021 09:47:43 root / root 0644 config.js 7.425 KB October 19 2021 09:47:43 root / root 0644 dedupe.js 4.882 KB October 19 2021 09:47:43 root / root 0644 deprecate.js 2.106 KB October 19 2021 09:47:43 root / root 0644 dist-tag.js 4.094 KB October 19 2021 09:47:43 root / root 0644 docs.js 1.038 KB October 19 2021 09:47:43 root / root 0644 doctor.js 3.974 KB October 19 2021 09:47:43 root / root 0644 edit.js 1.374 KB October 19 2021 09:47:43 root / root 0644 explore.js 1.633 KB October 19 2021 09:47:43 root / root 0644 fetch-package-metadata.js 3.809 KB October 19 2021 09:47:43 root / root 0644 fetch-package-metadata.md 1.767 KB October 19 2021 09:47:43 root / root 0644 get.js 0.229 KB October 19 2021 09:47:43 root / root 0644 help-search.js 5.642 KB October 19 2021 09:47:43 root / root 0644 help.js 6.334 KB October 19 2021 09:47:43 root / root 0644 hook.js 4.214 KB October 19 2021 09:47:43 root / root 0644 init.js 2.739 KB October 19 2021 09:47:44 root / root 0644 install-ci-test.js 0.475 KB October 19 2021 09:47:43 root / root 0644 install-test.js 0.495 KB October 19 2021 09:47:43 root / root 0644 install.js 34.75 KB October 19 2021 09:47:43 root / root 0644 link.js 5.604 KB October 19 2021 09:47:43 root / root 0644 logout.js 1.259 KB October 19 2021 09:47:43 root / root 0644 ls.js 15.788 KB October 19 2021 09:47:43 root / root 0644 npm.js 12.889 KB October 19 2021 09:47:43 root / root 0644 org.js 4.176 KB October 19 2021 09:47:43 root / root 0644 outdated.js 11.731 KB October 19 2021 09:47:43 root / root 0644 owner.js 6.596 KB October 19 2021 09:47:43 root / root 0644 pack.js 11.724 KB October 19 2021 09:47:43 root / root 0644 ping.js 1.114 KB October 19 2021 09:47:43 root / root 0644 prefix.js 0.322 KB October 19 2021 09:47:43 root / root 0644 profile.js 11.134 KB October 19 2021 09:47:43 root / root 0644 prune.js 2.228 KB October 19 2021 09:47:43 root / root 0644 publish.js 5.141 KB October 19 2021 09:47:44 root / root 0644 rebuild.js 2.093 KB October 19 2021 09:47:43 root / root 0644 repo.js 1.437 KB October 19 2021 09:47:43 root / root 0644 restart.js 0.063 KB October 19 2021 09:47:43 root / root 0644 root.js 0.309 KB October 19 2021 09:47:43 root / root 0644 run-script.js 5.403 KB October 19 2021 09:47:43 root / root 0644 search.js 3.361 KB October 19 2021 09:47:43 root / root 0644 set.js 0.27 KB October 19 2021 09:47:43 root / root 0644 shrinkwrap.js 9.005 KB October 19 2021 09:47:43 root / root 0644 star.js 2.106 KB October 19 2021 09:47:43 root / root 0644 stars.js 1.03 KB October 19 2021 09:47:43 root / root 0644 start.js 0.061 KB October 19 2021 09:47:43 root / root 0644 stop.js 0.06 KB October 19 2021 09:47:43 root / root 0644 substack.js 0.497 KB October 19 2021 09:47:43 root / root 0644 team.js 4.543 KB October 19 2021 09:47:44 root / root 0644 test.js 0.365 KB October 19 2021 09:47:43 root / root 0644 token.js 6.841 KB October 19 2021 09:47:43 root / root 0644 unbuild.js 4.106 KB October 19 2021 09:47:44 root / root 0644 uninstall.js 2.208 KB October 19 2021 09:47:44 root / root 0644 unpublish.js 3.44 KB October 19 2021 09:47:43 root / root 0644 update.js 2.187 KB October 19 2021 09:47:44 root / root 0644 version.js 9.504 KB October 19 2021 09:47:43 root / root 0644 view.js 15.063 KB October 19 2021 09:47:43 root / root 0644 visnup.js 4.008 KB October 19 2021 09:47:43 root / root 0644 whoami.js 1.767 KB October 19 2021 09:47:43 root / root 0644 xmas.js 1.578 KB October 19 2021 09:47:43 root / root 0644