
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
read-cmd-shim
Advanced tools
Figure out what a cmd-shim is pointing at. This acts as the equivalent of fs.readlink.
Figure out what a cmd-shim
is pointing at. This acts as the equivalent of
fs.readlink
.
const readCmdShim = require('read-cmd-shim')
readCmdShim('/path/to/shim.cmd').then(destination => {
…
})
const destination = readCmdShim.sync('/path/to/shim.cmd')
Reads the cmd-shim
located at path
and resolves 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.
Same as above but synchronous. Errors are thrown.
FAQs
Figure out what a cmd-shim is pointing at. This acts as the equivalent of fs.readlink.
We found that read-cmd-shim demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.