Skip to content

pascualmg/OOExec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

create rxjs Observables of system commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published