Vsuffix
Bun

variable

ffi.suffix

const suffix: string

The native shared library suffix for the current platform:

  • 'dylib' on macOS
  • 'so' on Unix-like platforms
  • 'dll' on Windows

This can be used to build portable library paths:

const { suffix } = require('node:ffi');

const path = `libsqlite3.${suffix}`;