REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 1.12 KB
Close
//lib/node_modules/npm/node_modules/read-cmd-shim/README.md
Text
Base64
# read-cmd-shim Figure out what a [`cmd-shim`](https://github.com/ForbesLindesay/cmd-shim) is pointing at. This acts as the equivalent of [`fs.readlink`](https://nodejs.org/api/fs.html#fs_fs_readlink_path_callback). ### Usage ``` var readCmdShim = require('read-cmd-shim') readCmdShim('/path/to/shim.cmd', function (er, destination) { … }) var destination = readCmdShim.sync('/path/to/shim.cmd') ``` ### readCmdShim(path, callback) Reads the `cmd-shim` located at `path` and calls back with the _relative_ path that the shim points at. Consider this as roughly the equivalent of `fs.readlink`. This can read both `.cmd` style that are run by the Windows Command Prompt and Powershell, and the kind without any extension that are used by Cygwin. This can return errors that `fs.readFile` returns, except that they'll include a stack trace from where `readCmdShim` was called. Plus it can return a special `ENOTASHIM` exception, when it can't find a cmd-shim in the file referenced by `path`. This should only happen if you pass in a non-command shim. ### readCmdShim.sync(path) Same as above but synchronous. Errors are thrown.
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
1.73 KB
lrw-r--r--
2021-03-10 14:36:37
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
752 B
lrw-r--r--
2021-03-10 14:36:37
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.65 KB
lrw-r--r--
2021-03-10 14:36:37
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.12 KB
lrw-r--r--
2021-03-10 14:36:37
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).