云盘
志元云盘
备份云盘
Home
/
志元云盘
/
webdav
/
sync
/
jcore
/
web
/
front_end
/
node_modules
/
cmd-shim
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
lib
2024-07-14 16:16:43
1.61 KB
index.js
2024-07-14 16:16:43
7.37 KB
LICENSE
2024-07-14 16:16:43
756 B
package.json
2024-07-14 16:16:43
1.56 KB
README.md
2024-07-14 16:16:43
932 B
# 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) -> Promise 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').then(() => { // shims are created! }) ``` ### cmdShim.ifExists(from, to) -> Promise The same as above, but will just continue if the file does not exist.
2025-09-03 12:20:29 Wednesday 216.73.216.38 Runningtime:0.012s Mem:1.48 MB