@lde/task-runner-native
v0.2.19
Published
Run shell commands natively on the host system using Node.js `child_process`.
Downloads
1,948
Readme
@lde/task-runner-native
Run shell commands natively on the host system using Node.js child_process.
Installation
npm install @lde/task-runner-nativeimport { NativeTaskRunner } from '@lde/task-runner-native';
const runner = new NativeTaskRunner({
cwd: '/path/to/working/dir', // Optional working directory
gracefulShutdownTimeout: 5000, // Optional timeout before SIGKILL (default: 5000ms)
});
// Run a command
const task = await runner.run('echo "Hello World"');
// Wait for completion
const output = await runner.wait(task);
console.log(output); // "Hello World"Documentation
See the full documentation.
