Skip to content

Wrap child_process.exec with Promise and add pretty output

Notifications You must be signed in to change notification settings

danielberndt/exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
});

About

Wrap child_process.exec with Promise and add pretty output

Resources

Stars

Watchers

Forks

Packages

No packages published