@danielberndt/exec
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

exec

promisifies require("child_process").exec and pretty-prints the output of stdout and stderr as data comes in.

install

npm i @danielberndt/exec;

usage examples:

const result = await exec("ls -l");
exec("ls -l doesntexist").catch(errCode => {
  // do something with errCode
});

Readme

Keywords

none

Package Sidebar

Install

npm i @danielberndt/exec

Weekly Downloads

2

Version

1.2.1

License

ISC

Unpacked Size

2.27 kB

Total Files

4

Last publish

Collaborators

  • danielberndt