GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing bun-docs.vercel.app — Node-API | Bun Docs

Get Started

Welcome to BunInstallationQuickstartTypeScriptTypeScript 6 and 7bun initbun create

Core Runtime

Bun RuntimeWatch ModeDebuggingREPLbunfig.toml

File & Module System

File TypesModule ResolutionJSXAuto-installPluginsFile System Router

HTTP Server

ServerRoutingCookiesTLSError HandlingMetricsWebSockets

Networking

FetchTCPUDPDNS

Data & Storage

CookiesFile I/OStreamsBinary DataArchiveSQLSQLiteS3Redis

Concurrency

Workers

Process & System

Environment VariablesShellSpawnWebViewCron

Interop & Tooling

Node-APIFFIC CompilerTranspiler

Utilities

CSRF ProtectionSecretsConsoleMarkdownTOMLYAMLJSON5JSONLXMLHTMLRewriterImageHashingGlobSemverColorUtils

Standards & Compatibility

GlobalsBun APIsWeb APIsNode.js Compatibility

Contributing

RoadmapBenchmarkingContributingBuilding WindowsBindgenLicense
Runtime
Bundler
Package Manager
Test Runner
Guides
Reference
Blog
Install Bun
Runtime Interop & Tooling

Node-API

Use Bun's Node-API module to build native add-ons to Node.js

Use Bun's Node-API module to build native add-ons to Node.js

Node-API is an interface for building native add-ons to Node.js. Bun implements this interface from scratch, so most existing Node-API extensions work with Bun out of the box.

As in Node.js, you can require() .node files (Node-API modules) directly.

const napi = require("./my-node-module.node");

Alternatively, use process.dlopen:

let mod = { exports: {} };
process.dlopen(mod, "./my-node-module.node");

Cron

Schedule and parse cron jobs with Bun

FFI

Use Bun's FFI module to efficiently call native libraries from JavaScript

On this page

No Headings
Feedback
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.