0.1.0 • Published 3 years ago
@hulkstack/rx-node v0.1.0
@hulkstack/rx-node
This library provides a set of observable subprocess utilities for NodeJS.
- File watcher (chokidar)
- Spawn
- Fork
Usage
Spawn(command: string, args: string[], options: SpawnOptions)
import { Spawn } from '@hulkstack/rx-node';
const spawnProcess = new Spawn('git', ['pull', '--ff'], { shell: true });
spawnProcess.subscribe({
next: (value) => {},
error: (error) => {},
complete: () => {}
});
0.1.0
3 years ago