
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Spawn a process with ease.
npm install --save ezspawn
var ezspawn = require('ezspawn');
ezspawn('ls -lh').then(function(output) {
console.log(output);
});
ezspawn.spawn(cmd)
Spawn a process and return the child_process object.
ezspawn(cmd, timeout=60000)
Runs cmd
, and returns a promise with the results.
cmd
The command you wish to execute. It uses
cli-command-parser to parse
the string into a suitable format for child_process#spawn
.
waitForProcess
When true, ezspawn will capture stdout, stderr and wait for the process to terminate. The returned promise will be resolved to an object containing the following:
{
code: exitCode,
stdout: stdoutBuffer,
stderr: stderrBuffer
};
When false, the promise will be resolved with the return value of
child_process#spawn
.
Default: true
timeout
Specifies how long we should wait for the process in milliseconds before timing out.
Default: 60 seconds
FAQs
Spawn a process with ease.
The npm package ezspawn receives a total of 13 weekly downloads. As such, ezspawn popularity was classified as not popular.
We found that ezspawn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.