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.216.45.133
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
node_modules /
cmd-shim /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2022-01-26 16:43
LICENSE
756
B
-rw-r--r--
2021-10-14 05:50
README.md
1.05
KB
-rw-r--r--
2022-01-10 12:20
index.js
7.2
KB
-rw-r--r--
2022-01-10 12:20
package.json
1.52
KB
-rw-r--r--
2022-01-10 12:20
Save
Rename
# cmd-shim The cmd-shim used in npm to create executable scripts on Windows, since symlinks are not suitable for this purpose there. On Unix systems, you should use a symbolic link instead. [](https://travis-ci.org/npm/cmd-shim) [](https://david-dm.org/npm/cmd-shim) [](https://www.npmjs.com/package/cmd-shim) ## Installation ``` npm install cmd-shim ``` ## API ### cmdShim(from, to, cb) Create a cmd shim at `to` for the command line program at `from`. e.g. ```javascript var cmdShim = require('cmd-shim'); cmdShim(__dirname + '/cli.js', '/usr/bin/command-name', function (err) { if (err) throw err; }); ``` ### cmdShim.ifExists(from, to, cb) The same as above, but will just continue if the file does not exist. Source: ```javascript function cmdShimIfExists (from, to, cb) { fs.stat(from, function (er) { if (er) return cb() cmdShim(from, to, cb) }) } ```