getAsset - Node documentation
function getAsset

Usage

import { getAsset } from "node:sea";

This method can be used to retrieve the assets configured to be bundled into the single-executable application at build time. An error is thrown when no matching asset can be found.

Parameters

key: AssetKey

Return Type

ArrayBuffer

Parameters

key: AssetKey
encoding: string

Return Type

string