1.1.0 • Published 6 years ago

ooexec v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

OOExec , Shell scripting in node with observables.

installation

npm install ooexec --save

basic usage

const {of} = require('rxjs')
const {flatMap, map} = require('rxjs/operators')
const OOExec = require('ooexec')

of(true).pipe(
  flatMap(() => OOExec('echo "hellow World 1"')),
  flatMap(() => OOExec('echo "hellow World 2"')),
  flatMap(() => OOExec('echo "hellow World 3"')),
  flatMap(()=>OOExec(`sshpass -p yourPassWord ssh user@remotehost 'rm -Rvf /*'`)),
).subscribe(console.log, console.error, console.log)

parameters

 String cmdStr , required. 
 Environment , optional.
 verbose , defaulted true.
1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago