parse-gst-device-monitor

0.1.3 • Public • Published

parse-gst-device-monitor

Parse the output from gst-device-monitor-1.0 and return as JSON object. No dependencies.

Sample usage

const { parseGstDeviceMonitorOutput } = require('parse-gst-device-monitor');
const { execSync } = require('child_process');

const input = execSync('gst-device-monitor-1.0', {encoding: 'utf8'});
const devices = parseGstDeviceMonitorOutput(input);

See testOutput.json for an example of the output format.

Readme

Keywords

Package Sidebar

Install

npm i parse-gst-device-monitor

Weekly Downloads

34

Version

0.1.3

License

Apache-2.0

Unpacked Size

7.86 kB

Total Files

5

Last publish

Collaborators

  • chfritz