@sealsystems/determine-executable-version

1.3.5 • Public • Published

@sealsystems/determine-executable-version

CircleCI

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']

Readme

Keywords

none

Package Sidebar

Install

npm i @sealsystems/determine-executable-version

Weekly Downloads

0

Version

1.3.5

License

MIT

Unpacked Size

7.2 kB

Total Files

5

Last publish

Collaborators

  • seal-mt
  • michaelscherer-seal
  • comgit