Gathering detailed insights and metrics for cross-spawn-promise
Gathering detailed insights and metrics for cross-spawn-promise
Gathering detailed insights and metrics for cross-spawn-promise
Gathering detailed insights and metrics for cross-spawn-promise
npm install cross-spawn-promise
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
25 Stars
86 Commits
7 Forks
2 Watching
130 Branches
9 Contributors
Updated on 09 Feb 2022
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-3%
3,419
Compared to previous day
Last week
-16.7%
27,477
Compared to previous week
Last month
39.3%
126,795
Compared to previous month
Last year
-8.2%
1,157,685
Compared to previous year
Promisified cross-spawn.
1import spawn from 'cross-spawn-promise' 2 3const command = 'ls' 4const args = ['-al', '/etc'] 5const options = {} 6spawn(command, args, options) 7 .then((stdout) => { 8 console.info('Success!') 9 console.info('stdout:', stdout.toString()) 10 }) 11 .catch((error) => { 12 console.error('Failed!') 13 console.error('exit status:', error.exitStatus) 14 console.error('stderr:', error.stderr.toString()) 15 })
1async spawn(command[, args][, options])
The returned Promise
will resolve to the process's standard output. Depending
on the value of the encoding
option (see below), it will either be a
Buffer
or a string.
The promise also exposes the created child process via its childProcess
property.
Upon rejection, the following properties provide additional information on the
Error
object:
exitSignal
exitStatus
stdout
stderr
All options are passed on to
cross-spawn, with the exception of
the additional encoding
option. If you pass a string (e.g., 'utf8'
), it will
be used as the
default character encoding.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/26 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
47 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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