UNPKG

lw-ffmpeg-node

Version:

`lw-ffmpeg-node` is a lightweight Node.js library for manipulating video files using FFmpeg. It provides various methods to retrieve information about video files, compress videos, create video slices, crop videos, change video size and frame rate, and sa

45 lines (44 loc) 1.52 kB
import { ProcessOptions } from "./FFMPEGManipulator"; export declare class Print { private static colors; private static RESET; static red: (...args: any[]) => void; static green: (...args: any[]) => void; static yellow: (...args: any[]) => void; static blue: (...args: any[]) => void; static magenta: (...args: any[]) => void; static cyan: (...args: any[]) => void; } export declare class FileManager { static exists(filePath: string): Promise<boolean>; static createDirectory(directoryPath: string, options?: { overwrite?: boolean; }): Promise<void>; } export default class CLI { static isLinux(): boolean; static isWindows(): boolean; static getAbsolutePath(filePath: string): string; /** * * Synchronous linux command execution. Returns the stdout */ static linux_sync(command: string, args?: string[]): string; /** * Asynchronous command execution for executable files * * @param filepath the path to the executable * @param command any commands to pass to the executable * @param options cli options * @returns stdout or stderr */ static cmd(filepath: string, command: string, options?: ProcessOptions): Promise<string>; /** * Asynchronous command execution for bash shell * * @param command the command to run * @param options cli options * @returns stdout or stderr */ static linux(command: string, options?: ProcessOptions): Promise<string>; }