Skip to content

plugins.add

Liatir.plugins.add() adds a low-level WASM plugin through a native file picker.

Signature

ts
add(name: string, maxBytes?: number): Promise<PluginAddResult>

Example

ts
const added = await Liatir.plugins.add('my-wasm-plugin');

Result

ts
type PluginAddResult = {
  bytes: number;
  name: string;
  path: string;
  saved: boolean;
};

Liatir — powerful bioinformatics on your machine.

By using this app, you agree to our Privacy Policy and Terms of Service.