@@ -219,7 +219,7 @@ executable, users can retrieve the assets using the [`sea.getAsset()`][] and
219
219
The single-executable application can access the assets as follows:
220
220
221
221
```cjs
222
- const { getAsset } = require(' node:sea' );
222
+ const { getAsset, getAssetAsBlob, getRawAsset } = require(' node:sea' );
223
223
// Returns a copy of the data in an ArrayBuffer.
224
224
const image = getAsset(' a.jpg' );
225
225
// Returns a string decoded from the asset as UTF8.
@@ -230,7 +230,7 @@ const blob = getAssetAsBlob('a.jpg');
230
230
const raw = getRawAsset(' a.jpg' );
231
231
```
232
232
233
- See documentation of the [`sea.getAsset()`][] and [`sea.getAssetAsBlob ()`][]
233
+ See documentation of the [`sea.getAsset()`][], [`sea.getAssetAsBlob()`][] and [`sea.getRawAsset ()`][]
234
234
APIs for more information.
235
235
236
236
### Startup snapshot support
@@ -429,6 +429,7 @@ to help us document them.
429
429
[`require.main`]: modules.md#accessing-the-main-module
430
430
[`sea.getAsset()`]: #seagetassetkey-encoding
431
431
[`sea.getAssetAsBlob()`]: #seagetassetasblobkey-options
432
+ [`sea.getRawAsset()`]: #seagetrawassetkey
432
433
[`v8.startupSnapshot.setDeserializeMainFunction()`]: v8.md#v8startupsnapshotsetdeserializemainfunctioncallback-data
433
434
[`v8.startupSnapshot` API]: v8.md#startup-snapshot-api
434
435
[documentation about startup snapshot support in Node.js]: cli.md#--build-snapshot
0 commit comments