1.0.1 • Published 1 year ago

mediamtx-installer v1.0.1

Weekly downloads
-
License
LGPL-2.1
Repository
github
Last release
1 year ago

mediamtx installer

Platform independent binary installer of mediamtx for node projects. Useful for tools that should "just work" on multiple environments.

Installs a binary of mediamtx for the current platform and provides a path and version. Supports Linux, Windows and Mac OS/X.

A combination of package.json fields supportedPlatforms, cpu, and os let's the installer only download the binary for the current platform. See also "Warnings during install", below.

Install

npm install --save mediamtx-installer

Usage examples

const mediamtx = require('mediamtx-installer');
console.log(mediamtx.path, mediamtx.version);

process.spawn()

const mediamtxPath = require('mediamtx-installer').path;
const spawn = require('child_process').spawn;
const mediamtx = spawn(mediamtxPath, args);
mediamtx.on('exit', onExit);