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

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: use ffi.suffix in permission example · nodejs/node@be31301

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc
    • api
      • cli.md
    • node.1
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/cli.md‎

Copy file name to clipboardExpand all lines: doc/api/cli.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ starting Node.js. The [`node:ffi`][] module also requires the
208208
Example:
209209

210210
```js
211-
const { DynamicLibrary } = require('node:ffi');
212-
const lib = new DynamicLibrary('mylib.so');
211+
const { DynamicLibrary, suffix } = require('node:ffi');
212+
const lib = new DynamicLibrary(`./mylib.${suffix}`);
213213
```
214214

215215
```console
Collapse file

‎doc/node.1‎

Copy file name to clipboardExpand all lines: doc/node.1
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ starting Node.js. The \fBnode:ffi\fR module also requires the
126126
\fB--experimental-ffi\fR flag and is only available in builds with FFI support.
127127
Example:
128128
.Bd -literal
129-
const { DynamicLibrary } = require('node:ffi');
130-
const lib = new DynamicLibrary('mylib.so');
129+
const { DynamicLibrary, suffix } = require('node:ffi');
130+
const lib = new DynamicLibrary(`./mylib.${suffix}`);
131131
.Ed
132132
.Bd -literal
133133
$ node --permission --experimental-ffi index.js

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.