@sliit-foss/actions-exec-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

@sliit-foss/actions-exec-wrapper

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



Installation

# using npm
npm install @sliit-foss/actions-exec-wrapper

# using yarn
yarn add @sliit-foss/actions-exec-wrapper

Usage

# using require
const exec = require("@sliit-foss/actions-exec-wrapper").default;

# using import
import exec from "@sliit-foss/actions-exec-wrapper";

Example

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

Package Sidebar

Install

npm i @sliit-foss/actions-exec-wrapper

Weekly Downloads

4

Version

1.1.2

License

MIT

Unpacked Size

5.24 kB

Total Files

6

Last publish

Collaborators

  • sliit.foss