1.1.1 • Published 4 years ago

ffbinaries-extra v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

FFBinaries Extra Travis CI Build Status

FFBinaries with promise support, request normalisation and a simplified API.

NPM Badge

Install

npm install ffbinaries-extra

Usage

const ffBinaries = require("ffbinaries-extra");

ffBinaries.downloadBinaries();
//=> Promise<void>

API

getVersions()

Get the versions of FFBinaries available.

getLatestVersion()

Get the latest version of FFBinaries available.

downloadBinaries(options?)

options

Type: object

components

Type: Array<"ffmpeg" | "ffprobe" | "ffserver" | "ffplay">

An array of string values that describes which components to download. If not provided it will default to all components available for the platform.

version

Type: string

The version of ffmpeg to download.

extract

Type: boolean

Automatically extract downloaded zip files. Defaults to true.

destination

Type: string

The path where the binaries will be downloaded to.

supportedPlatforms

Type: string[]

The platforms supported by FFBinaries.

currentPlatform

Type: string

The current platform as detected from the os type and architecture.