A wrapper around the @actions/exec module which promisifies the console output of a command
# using npm
npm install @sliit-foss/actions-exec-wrapper
# using yarn
yarn add @sliit-foss/actions-exec-wrapper
# using require
const exec = require("@sliit-foss/actions-exec-wrapper").default;
# using import
import exec from "@sliit-foss/actions-exec-wrapper";
exec("npm --version")
.then((result) => {
console.log(result);
})
.catch((error) => {
console.log(error);
});