🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 12:11:31 | PHP 8.1.34
📂
/ (Root)
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
commands
📍 /usr/lib/node_modules/npm/lib/commands
🔄 Refresh
✏️
Editing: whoami.js
Read Only
const getIdentity = require('../utils/get-identity.js') const BaseCommand = require('../base-command.js') class Whoami extends BaseCommand { static description = 'Display npm username' static name = 'whoami' static params = ['registry'] static ignoreImplicitWorkspace = true async exec (args) { const username = await getIdentity(this.npm, { ...this.npm.flatOptions }) this.npm.output( this.npm.config.get('json') ? JSON.stringify(username) : username ) } } module.exports = Whoami
💾 Save Changes
❌ Cancel