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
70.8
Supply Chain
85.9
Quality
75.3
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
198,828
Last Day
38
Last Week
447
Last Month
1,880
Last Year
26,580
MIT License
2 Stars
31 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Nov 02, 2020
Minified
Minified + Gzipped
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%
38
Compared to previous day
Last Week
-8.2%
447
Compared to previous week
Last Month
1.8%
1,880
Compared to previous month
Last Year
-47.9%
26,580
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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-30
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