0.1.0 • Published 3 years ago

@hulkstack/rx-node v0.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

@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: () => {}
});