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-nodejs12/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 stars' 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:49:16 root / root 0755 config -- March 03 2024 22:49:16 root / root 0755 doctor -- March 03 2024 22:49:16 root / root 0755 install -- March 03 2024 22:49:16 root / root 0755 search -- March 03 2024 22:49:16 root / root 0755 utils -- March 03 2024 22:49:16 root / root 0755 access.js 5.539 KB January 11 2022 01:49:31 root / root 0644 adduser.js 1.306 KB January 11 2022 01:49:31 root / root 0644 audit.js 10.558 KB January 11 2022 01:49:31 root / root 0644 bin.js 0.503 KB January 11 2022 01:49:31 root / root 0644 bugs.js 0.844 KB January 11 2022 01:49:31 root / root 0644 build.js 4.438 KB January 11 2022 01:49:31 root / root 0644 cache.js 4.661 KB January 11 2022 01:49:31 root / root 0644 ci.js 1.31 KB January 11 2022 01:49:30 root / root 0644 completion.js 7.107 KB January 11 2022 01:49:31 root / root 0644 config.js 7.434 KB January 11 2022 01:49:31 root / root 0644 dedupe.js 4.882 KB January 11 2022 01:49:30 root / root 0644 deprecate.js 2.106 KB January 11 2022 01:49:31 root / root 0644 dist-tag.js 4.105 KB January 11 2022 01:49:30 root / root 0644 docs.js 1.038 KB January 11 2022 01:49:31 root / root 0644 doctor.js 3.979 KB January 11 2022 01:49:30 root / root 0644 edit.js 1.374 KB January 11 2022 01:49:31 root / root 0644 explore.js 1.669 KB January 11 2022 01:49:30 root / root 0644 fetch-package-metadata.js 3.969 KB January 11 2022 01:49:31 root / root 0644 fetch-package-metadata.md 1.769 KB January 11 2022 01:49:31 root / root 0644 fund.js 4.908 KB January 11 2022 01:49:31 root / root 0644 get.js 0.229 KB January 11 2022 01:49:31 root / root 0644 help-search.js 5.642 KB January 11 2022 01:49:31 root / root 0644 help.js 6.354 KB January 11 2022 01:49:30 root / root 0644 hook.js 4.616 KB January 11 2022 01:49:31 root / root 0644 init.js 2.739 KB January 11 2022 01:49:31 root / root 0644 install-ci-test.js 0.475 KB January 11 2022 01:49:31 root / root 0644 install-test.js 0.495 KB January 11 2022 01:49:31 root / root 0644 install.js 36.47 KB January 11 2022 01:49:31 root / root 0644 link.js 5.604 KB January 11 2022 01:49:30 root / root 0644 logout.js 1.259 KB January 11 2022 01:49:31 root / root 0644 ls.js 16.094 KB January 11 2022 01:49:31 root / root 0644 npm.js 14.374 KB January 11 2022 01:49:31 root / root 0644 org.js 4.176 KB January 11 2022 01:49:31 root / root 0644 outdated.js 12.277 KB January 11 2022 01:49:31 root / root 0644 owner.js 6.596 KB January 11 2022 01:49:30 root / root 0644 pack.js 11.785 KB January 11 2022 01:49:31 root / root 0644 ping.js 1.114 KB January 11 2022 01:49:31 root / root 0644 prefix.js 0.322 KB January 11 2022 01:49:31 root / root 0644 profile.js 11.134 KB January 11 2022 01:49:31 root / root 0644 prune.js 2.228 KB January 11 2022 01:49:31 root / root 0644 publish.js 5.141 KB January 11 2022 01:49:31 root / root 0644 rebuild.js 2.093 KB January 11 2022 01:49:31 root / root 0644 repo.js 1.437 KB January 11 2022 01:49:31 root / root 0644 restart.js 0.063 KB January 11 2022 01:49:31 root / root 0644 root.js 0.313 KB January 11 2022 01:49:31 root / root 0644 run-script.js 5.41 KB January 11 2022 01:49:31 root / root 0644 search.js 3.361 KB January 11 2022 01:49:31 root / root 0644 set.js 0.27 KB January 11 2022 01:49:31 root / root 0644 shrinkwrap.js 9.82 KB January 11 2022 01:49:31 root / root 0644 star.js 2.106 KB January 11 2022 01:49:31 root / root 0644 stars.js 1.029 KB January 11 2022 01:49:31 root / root 0644 start.js 0.061 KB January 11 2022 01:49:31 root / root 0644 stop.js 0.06 KB January 11 2022 01:49:31 root / root 0644 substack.js 0.497 KB January 11 2022 01:49:31 root / root 0644 team.js 4.613 KB January 11 2022 01:49:31 root / root 0644 test.js 0.365 KB January 11 2022 01:49:30 root / root 0644 token.js 6.658 KB January 11 2022 01:49:30 root / root 0644 unbuild.js 4.271 KB January 11 2022 01:49:31 root / root 0644 uninstall.js 2.208 KB January 11 2022 01:49:31 root / root 0644 unpublish.js 3.51 KB January 11 2022 01:49:31 root / root 0644 update.js 2.161 KB January 11 2022 01:49:31 root / root 0644 version.js 9.794 KB January 11 2022 01:49:31 root / root 0644 view.js 15.11 KB January 11 2022 01:49:30 root / root 0644 visnup.js 4.008 KB January 11 2022 01:49:31 root / root 0644 whoami.js 1.767 KB January 11 2022 01:49:31 root / root 0644 xmas.js 1.624 KB January 11 2022 01:49:31 root / root 0644