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