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
Typescript
Module System
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
31 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Nov 02, 2020
Latest Version
0.1.0
Package Id
actions-exec-listener@0.1.0
Unpacked Size
13.36 kB
Size
4.50 kB
File Count
8
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
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 2025-07-07
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