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: fix sea assets example · nodejs/node@2f5309f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • single-executable-applications.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/single-executable-applications.md‎

Copy file name to clipboardExpand all lines: doc/api/single-executable-applications.md
+3-2Lines changed: 3 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ executable, users can retrieve the assets using the [`sea.getAsset()`][] and
219219
The single-executable application can access the assets as follows:
220220
221221
```cjs
222-
const { getAsset } = require('node:sea');
222+
const { getAsset, getAssetAsBlob, getRawAsset } = require('node:sea');
223223
// Returns a copy of the data in an ArrayBuffer.
224224
const image = getAsset('a.jpg');
225225
// Returns a string decoded from the asset as UTF8.
@@ -230,7 +230,7 @@ const blob = getAssetAsBlob('a.jpg');
230230
const raw = getRawAsset('a.jpg');
231231
```
232232
233-
See documentation of the [`sea.getAsset()`][] and [`sea.getAssetAsBlob()`][]
233+
See documentation of the [`sea.getAsset()`][], [`sea.getAssetAsBlob()`][] and [`sea.getRawAsset()`][]
234234
APIs for more information.
235235
236236
### Startup snapshot support
@@ -429,6 +429,7 @@ to help us document them.
429429
[`require.main`]: modules.md#accessing-the-main-module
430430
[`sea.getAsset()`]: #seagetassetkey-encoding
431431
[`sea.getAssetAsBlob()`]: #seagetassetasblobkey-options
432+
[`sea.getRawAsset()`]: #seagetrawassetkey
432433
[`v8.startupSnapshot.setDeserializeMainFunction()`]: v8.md#v8startupsnapshotsetdeserializemainfunctioncallback-data
433434
[`v8.startupSnapshot` API]: v8.md#startup-snapshot-api
434435
[documentation about startup snapshot support in Node.js]: cli.md#--build-snapshot

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.