sane-wasm - v0.6.1
    Preparing search index...

    Type Alias LibSANEOptions

    SANE Emscripten module options (specific to sane-wasm).

    type LibSANEOptions = {
        backends?: string[] | { exclude?: string[]; include?: string[] };
        debugFunctionCalls?: boolean;
        debugSANE?: boolean;
        debugTestDevices?: number;
        debugUSB?: boolean;
        promisify?: boolean;
        promisifyQueue?: boolean;
    }
    Index
    backends?: string[] | { exclude?: string[]; include?: string[] }

    Selects which SANE backends to include or exclude.

    (all backends)
    
    debugFunctionCalls?: boolean

    Enables debug messages for SANE function calls.

    false

    debugSANE?: boolean

    Enables SANE low-level debug messages, this can be quite verbose.

    false

    debugTestDevices?: number

    Sets the number of test devices for SANE's test backend.

    0

    debugUSB?: boolean

    Enables libusb low-level debug messages, this can be quite verbose.

    false

    promisify?: boolean

    Enables sane-wasm "promisify" to normalize the API. See pre.js for more information.

    Setting this to false changes the API definition! Some functions may stop being asynchronous in some cases. You want this option enabled! This option may be removed in the future.

    true

    promisifyQueue?: boolean

    Enables sane-wasm "promisify" queue that queues function calls to prevent issues with calling multiple asynchronous functions. See pre.js for more information.

    You want this option enabled! This option may be removed in the future.

    true