Software: Apache. PHP/7.3.33 uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) Safe-mode: OFF (not secure) /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib/ drwxr-xr-x |
Viewing file: Select action/file-type: module.exports = star var npm = require('./npm.js') var log = require('npmlog') var asyncMap = require('slide').asyncMap var mapToRegistry = require('./utils/map-to-registry.js') var usage = require('./utils/usage') var output = require('./utils/output.js') star.usage = usage( 'star', 'npm star [<pkg>...]\n' + 'npm unstar [<pkg>...]' ) star.completion = function (opts, cb) { // FIXME: there used to be registry completion here, but it stopped making // sense somewhere around 50,000 packages on the registry cb() } function star (args, cb) { if (!args.length) return cb(star.usage) var s = npm.config.get('unicode') ? '\u2605 ' : '(*)' var u = npm.config.get('unicode') ? '\u2606 ' : '( )' var using = !(npm.command.match(/^un/)) if (!using) s = u asyncMap(args, function (pkg, cb) { mapToRegistry(pkg, npm.config, function (er, uri, auth) { if (er) return cb(er) var params = { starred: using, auth: auth } npm.registry.star(uri, params, function (er, data, raw, req) { if (!er) { output(s + ' ' + pkg) log.verbose('star', data) } cb(er, data, raw, req) }) }) }, cb) } |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0971 ]-- |