-
Notifications
You must be signed in to change notification settings - Fork 1
vitals.run
Method | Section | Alias |
---|---|---|
run | shell |
A shortcut for child_process.spawnSync that returns the stdout.
Params
-
cmd
string
-
opts
Object=
- opts.eol?string=
default value:
"LF"
The end of line character to use when normalizing the result. If opts.eol is null or opts.buffer is true and opts.eol is undefined no normalization is completed. Optional values:
"LF", "CR", "CRLF"
- opts.bufferboolean=
default value:
false
If true and stdout is a buffer the buffer is returned. Otherwise a string of stdout is returned. - opts.catchExit
boolean=
default value:
true
If process is exited with an error code an error is logged. - opts.encoding
string=
default value:
"utf8"
If opts.buffer is true and opts.encoding is undefined no encoding is set. - opts.cwd
string=
- opts.input(string|!Buffer)=
- opts.env!Object=
- opts.uidnumber=
- opts.gidnumber=
- opts.timeoutnumber=
- opts.killSignalstring=
- opts.maxBuffernumber=
Returns (string|!Buffer)
-- Happy Developing,