Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.222.159.83
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
replace-ext /
Delete
Unzip
Name
Size
Permission
Date
Action
LICENSE
1.14
KB
-rw-rw-r--
2022-08-30 11:49
README.md
2.42
KB
-rw-rw-r--
2022-08-30 11:49
index.js
767
B
-rw-rw-r--
2022-08-30 11:49
package.json
1.08
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
'use strict'; var path = require('path'); function replaceExt(npath, ext) { if (typeof npath !== 'string') { return npath; } if (npath.length === 0) { return npath; } var nFileName = path.basename(npath, path.extname(npath)) + ext; var nFilepath = path.join(path.dirname(npath), nFileName); // Because `path.join` removes the head './' from the given path. // This removal can cause a problem when passing the result to `require` or // `import`. if (startsWithSingleDot(npath)) { return '.' + path.sep + nFilepath; } return nFilepath; } function startsWithSingleDot(fpath) { var first2chars = fpath.slice(0, 2); return (first2chars === '.' + path.sep) || (first2chars === './'); } module.exports = replaceExt;