ooexec

1.1.0 • Public • Published

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.

Package Sidebar

Install

npm i ooexec

Weekly Downloads

5

Version

1.1.0

License

ISC

Unpacked Size

2.46 kB

Total Files

4

Last publish

Collaborators

  • pascualmg