@vimlet/commons-glob
v1.2.5
Published
Handle path patterns
Downloads
91
Readme
Run
Request manager.
Installation
npm install @vimlet/commons-run
It will be also installed as a module within @vimlet/commons
Usage
run.exec(command, options, doneHandler)
Runs a file or command and streams its output.
- command: File or command to be executed.
- options:
- execHandler: Default output callback
function(out, error)
, redirects stdout when provided.- args: Executable arguments(string[]).
- workingDirectory: The path from where the executable will run.
- doneHandler: Default done callback
function(error, exitCode)
.
run.fetch(command, options, doneHandler)
Runs a file or command and buffers its output.
- command: File or command to be executed.
- options:
- args: Executable arguments(string[]).
- workingDirectory: The path from where the executable will run.
- doneHandler: Default done callback
function(error, exitCode)
.
License
This project is under MIT License. See LICENSE for details.