@sealsystems/determine-executable-version
v1.3.5
Published
[](https://circleci.com/gh/sealsystems/node-determine-executable-version)
Readme
@sealsystems/determine-executable-version
Calls an executable and returns the version information it writes to stdout.
Installation
$ npm install seal-determine-executable-versionUsage
const determineExecutableVersion = require('seal-determine-executable-version');
const options = {
exeFile: '/bin/bash',
maxBytes: 128,
exeArguments: ['--version']
};
const versionString = await determineExecutableVersion(options);
Parameters:
exeFileThe full path to the executable file whose version shall be determined. Required option.maxBytesThe maximum number of bytes to return from the output; output which is longer is truncated. Default:128exeArgumentsThe argument list to call the executable file with. Default:['--version']
