⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
commands
/
View File Name :
bin.js
const log = require('../utils/log-shim.js') const BaseCommand = require('../base-command.js') // TODO this may not be needed at all. Ignoring because our tests normalize // process.env.path already /* istanbul ignore next */ const path = process.env.path || process.env.Path || process.env.PATH const { delimiter } = require('path') class Bin extends BaseCommand { static description = 'Display npm bin folder' static name = 'bin' static params = ['global'] static ignoreImplicitWorkspace = true async exec (args) { const b = this.npm.bin this.npm.output(b) if (this.npm.global && !path.split(delimiter).includes(b)) { log.error('bin', '(not in PATH env variable)') } } } module.exports = Bin