📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-29 22:37:28
📂
/ (Root)
/
opt
/
alt
/
alt-nodejs9
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
npm-registry-client
/
lib
📍 /opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/npm-registry-client/lib
🔄 Refresh
✏️
Editing: stars.js
Read Only
module.exports = stars var assert = require('assert') var url = require('url') function stars (uri, params, cb) { assert(typeof uri === 'string', 'must pass registry URI to stars') assert(params && typeof params === 'object', 'must pass params to stars') assert(typeof cb === 'function', 'must pass callback to stars') var auth = params.auth var name = params.username || (auth && auth.username) if (!name) return cb(new Error('must pass either username or auth to stars')) var encoded = encodeURIComponent(name) var path = '-/_view/starredByUser?key="' + encoded + '"' this.request(url.resolve(uri, path), { auth: auth }, cb) }
💾 Save Changes
❌ Cancel