UNPKG

maxcso

Version:

💿 maxcso binaries and wrapper for Node.js.

29 lines (28 loc) • 844 B
export interface MaxcsoBinOptions { binaryPreference?: MaxcsoBinaryPreference; logStd?: boolean; } export declare enum MaxcsoBinaryPreference { PREFER_BUNDLED_BINARY = 1, PREFER_PATH_BINARY = 2 } /** * Code to find and interact with the `maxcso` binary. */ export default class MaxcsoBin { private static MAXCSO_BIN; private static readonly MAXCSO_BIN_MUTEX; private static getBinPath; private static getBinPathBundled; /** * Look for maxcso binaries bundled with: * `bun build --compile --asset-naming="[name].[ext]" maxcso` */ private static getBinPathBundledBun; private static getTemporaryDirectory; private static getBinPathExisting; /** * Run maxcso with some arguments. */ static run(arguments_: string[], options?: MaxcsoBinOptions): Promise<string>; }