
This is better in the following ways: - Promise interface. - Strips EOF from the output so you don't have to `stdout.trim()`. - Supports shebang binaries cross-platform. - Improved Windows support. - Higher max buffer. 10 MB instead of 200 KB. - Executes locally installed binaries by name. - Cleans up spawned processes when the parent process dies.
Node.js is an event-based server-side JavaScript engine.