Run shell commands natively on the host system using Node.js child_process.
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"See the full documentation.