Gathering detailed insights and metrics for @zkochan/cmd-shim
Gathering detailed insights and metrics for @zkochan/cmd-shim
Gathering detailed insights and metrics for @zkochan/cmd-shim
Gathering detailed insights and metrics for @zkochan/cmd-shim
npm install @zkochan/cmd-shim
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.6
Supply Chain
84.1
Quality
76.8
Maintenance
100
Vulnerability
100
License
TypeScript (72.44%)
JavaScript (27.56%)
Total Downloads
168,867,038
Last Day
37,873
Last Week
624,653
Last Month
2,747,636
Last Year
23,421,306
NOASSERTION License
14 Stars
174 Commits
12 Forks
4 Watchers
3 Branches
38 Contributors
Updated on Apr 29, 2025
Minified
Minified + Gzipped
Latest Version
7.0.0
Package Id
@zkochan/cmd-shim@7.0.0
Unpacked Size
37.45 kB
Size
10.38 kB
File Count
7
NPM Version
10.8.2
Node Version
20.19.0
Published on
Apr 21, 2025
Cumulative downloads
Total Downloads
Last Day
-29.1%
37,873
Compared to previous day
Last Week
-12.5%
624,653
Compared to previous week
Last Month
16.9%
2,747,636
Compared to previous month
Last Year
-4%
23,421,306
Compared to previous year
Used in pnpm for command line application support
The cmd-shim used in pnpm to create executable scripts.
1npm install --save @zkochan/cmd-shim
cmdShim(src, to, opts?): Promise<void>
Create a cmd shim at to
for the command line program at from
.
e.g.
1const cmdShim = require('@zkochan/cmd-shim') 2cmdShim(__dirname + '/cli.js', '/usr/bin/command-name') 3 .catch(err => console.error(err))
cmdShim.ifExists(src, to, opts?): Promise<void>
The same as above, but will just continue if the file does not exist.
opts.preserveSymlinks
- Boolean - if true, --preserve-symlinks
is added to the options passed to NodeJS.opts.nodePath
- String - sets the NODE_PATH env variable.opts.prependToPath
- String - prepends the passed path to PATH before executing the Node.js program.opts.nodeExecPath
- String - sets the path to the Node.js executable.opts.createCmdFile
- Boolean - is true
on Windows by default. If true, creates a cmd file.opts.createPwshFile
- Boolean - is true
by default. If true, creates a powershell file.opts.progArgs
- String - optional arguments that will be prepend to any CLI arguments1const cmdShim = require('@zkochan/cmd-shim') 2cmdShim(__dirname + '/cli.js', '/usr/bin/command-name', { preserveSymlinks: true }) 3 .catch(err => console.error(err))
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6
Reason
Found 3/30 approved changesets -- score normalized to 1
Reason
9 existing vulnerabilities detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More