Skip to main content
Module

x/plug/mod.ts>NamedOptions

🔌 Deno FFI helper module
Go to Latest
interface NamedOptions
import { type NamedOptions } from "https://deno.land/x/plug@1.0.0-rc.3/mod.ts";

Options used for automatically assembling an os and arch specific file name

Properties

name: string

The base name of the library.

libplug.x86_64.dll
   ^^^^
optional
extensions: OsRecord<string>

A OsRecord containing the extensions for the respective operating-systems. By default this is .so for linux, .dylib for darwin and .dll for windows.

libplug.x86_64.dll
               ^^^
optional
prefixes: NestedCrossRecord<string>

A NestedCrossRecord containing the prefixes for the respective operating-systems and architectures. By default this is lib for all architectures on linux and darwin and empty for windows.

libplug.x86_64.dll
^^^
optional
suffixes: NestedCrossRecord<string>

A NestedCrossRecord containing the suffixes for the respective operating-systems and architectures. By default this is empty for all architectures and operating-systems. An idea would be to use this to automatically select the suffix for the correct architecture.

libplug.x86_64.dll
       ^^^^^^^