Package Exports
- @vimlet/commons-run
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vimlet/commons-run) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.