This package improves child_process methods with a promise interface. Strips the final newline from the output so you don't have to do stdout.trim(). Supports shebang binaries cross-platform. Improved Windows support. Higher max buffer. 100 MB instead of 200 KB. Executes locally installed binaries by name. Cleans up spawned processes when the parent process dies. Get interleaved output from stdout and stderr similar to what is printed on the terminal. (Async only). Can specify file and arguments as a single string without a shell. More descriptive errors. Gracefully handle failures by using automatic retries and exponential backoff with the p-retry package.

Features

  • No escaping/quoting is needed
  • Execute a file synchronously
  • Execute a Node.js script as a child process
  • The child process stderr then stdout are appended to the end
  • Kill the spawned process when the parent process exits
  • Write some input to the stdin of your binary
  • Redirect output to a file
  • Redirect input from a file
  • Execute the current package's binary

Project Samples

Project Activity

See All Activity >

Categories

Debuggers

License

MIT License

Follow EXECA

EXECA Web Site

Other Useful Business Software
Paessler - Monitor Your Whole Network in Minutes Icon
Paessler - Monitor Your Whole Network in Minutes

Auto-discovery finds your devices and deploys pre-configured sensors instantly. No project plan required, just visibility from day one.

Waiting weeks for a monitoring rollout isn't an option when infrastructure doesn't stop running. PRTG's auto-discovery scans your network and suggests from over 200 pre-configured sensor types, so you're watching servers, applications and devices within minutes, not after a multi-week deployment. Enterprise-strength monitoring, without the enterprise complexity. Start your free trial today.
Start Free 30-Day Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of EXECA!

Additional Project Details

Operating Systems

Windows

Programming Language

JavaScript

Related Categories

JavaScript Debuggers

Registered

2021-12-21