npm.io
1.0.3 • Published 3 years ago

actions-exec-wrapper

Licence
MIT
Version
1.0.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

actions-exec-wrapper

A wrapper around the @actions/exec module which promisifies the console output of a command


Installation

# using npm
npm install actions-exec-wrapper

# using yarn
yarn add actions-exec-wrapper

Usage

# using require
const exec = require("actions-exec-wrapper").default;

# using import
import exec from "actions-exec-wrapper";

Example

exec('npm --version').then(result => {
  console.log(result);
}).catch(error => {
  console.log(error);
})

Keywords