1.1.0 • Published 7 years ago

ooexec v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago