⚝
One Hat Cyber Team
⚝
Your IP:
160.79.110.53
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
node_modules
/
npm
/
lib
/
utils
/
completion
/
View File Name :
file-completion.js
module.exports = fileCompletion var mkdir = require('mkdirp') var glob = require('glob') function fileCompletion (root, req, depth, cb) { if (typeof cb !== 'function') { cb = depth depth = Infinity } mkdir(root, function (er) { if (er) return cb(er) // can be either exactly the req, or a descendent var pattern = root + '/{' + req + ',' + req + '/**/*}' var opts = { mark: true, dot: true, maxDepth: depth } glob(pattern, opts, function (er, files) { if (er) return cb(er) return cb(null, (files || []).map(function (f) { return f.substr(root.length + 1).replace(/^\/|\/$/g, '') })) }) }) }