Gathering detailed insights and metrics for actions-exec-listener
Gathering detailed insights and metrics for actions-exec-listener
Gathering detailed insights and metrics for actions-exec-listener
Gathering detailed insights and metrics for actions-exec-listener
npm install actions-exec-listener
69.1
Supply Chain
85.9
Quality
75.3
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2 Stars
31 Commits
2 Watching
1 Branches
1 Contributors
Updated on 02 Nov 2020
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
-30.3%
46
Compared to previous day
Last week
6%
391
Compared to previous week
Last month
-9.9%
1,813
Compared to previous month
Last year
-29%
43,573
Compared to previous year
1
3
@actions/exec wrapper to get listener data value as return value.
1const exec = require('actions-exec-listener'); 2// instead of 3// const exec = require('@actions/exec'); 4 5const options = {}; 6options.cwd = './lib'; 7const { stdoutStr: myOutput, stderrStr: myError } = await exec.exec('node', ['index.js', 'foo=bar'], options);
1const exec = require('@actions/exec'); 2 3let myOutput = ''; 4let myError = ''; 5 6const options = {}; 7options.listeners = { 8 stdout: (data: Buffer) => { 9 myOutput += data.toString(); 10 }, 11 stderr: (data: Buffer) => { 12 myError += data.toString(); 13 } 14}; 15options.cwd = './lib'; 16 17await exec.exec('node', ['index.js', 'foo=bar'], options);
Above code from actions/toolkit repository
1$ npm install actions-exec-listener @actions/exec 2$ # or 3$ yarn add actions-exec-listener @actions/exec
It can be used in the same way as @actions/exec
, except for the return value.
require('actions-exec-listener').exec
returns object containing the below keys.
@actions/exec
stdout
Bufferstderr
Bufferstdline
stringerrline
stringdebug
stringactions-exec-listener
stdoutStr
stdout.toString()
.stderrStr
stderr.toString()
.PRs are accepted.
If you are having trouble or feature request, post new issue.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
Score
Last Scanned on 2024-11-18
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