!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

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
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/alt-nodejs18/root/usr/lib/node_modules/npm/lib/utils/   drwxr-xr-x
Free 293.71 GB of 429.69 GB (68.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     did-you-mean.js (1.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
const Npm = require('../npm')
const { distance } = require('fastest-levenshtein')
const { commands } = require('./cmd-list.js')

const runScripts = ['stop', 'start', 'test', 'restart']

const isClose = (scmd, cmd) => distance(scmd, cmd) < scmd.length * 0.4

const didYouMean = (pkg, scmd) => {
  const { scripts = {}, bin = {} } = pkg || {}

  const best = [
    ...commands
      .filter(cmd => isClose(scmd, cmd) && scmd !== cmd)
      .map(str => [str, Npm.cmd(str).description]),
    ...Object.keys(scripts)
      // We would already be suggesting this in `npm x` so omit them here
      .filter(cmd => isClose(scmd, cmd) && !runScripts.includes(cmd))
      .map(str => [`run ${str}`, `run the "${str}" package script`]),
    ...Object.keys(bin)
      .filter(cmd => isClose(scmd, cmd))
      /* eslint-disable-next-line max-len */
      .map(str => [`exec ${str}`, `run the "${str}" command from either this or a remote npm package`]),
  ]

  if (best.length === 0) {
    return ''
  }

  return `\n\nDid you mean ${best.length === 1 ? 'this' : 'one of these'}?\n` +
    best.slice(0, 3).map(([msg, comment]) => `  npm ${msg} # ${comment}`).join('\n')
}

module.exports = didYouMean

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0032 ]--