MCPcopy Index your code
hub / github.com/nodejs/node / getAssetAsBlob

Function getAssetAsBlob

lib/sea.js:66–69  ·  view source on GitHub ↗

* Look for the asset in the injected SEA blob using the key. If * no matching asset is found an error is thrown. The data is returned * in a Blob. If no matching asset is found an error is thrown. * @param {string} key * @param {ConstructorParameters [1]} [options] * @returns {Blob}

(key, options)

Source from the content-addressed store, hash-verified

64 * @returns {Blob}
65 */
66function getAssetAsBlob(key, options) {
67 const asset = getRawAsset(key);
68 return new Blob([asset], options);
69}
70
71/**
72 * Returns an array of all the keys of assets embedded into the

Callers 3

sea.jsFile · 0.85
testFunction · 0.85

Calls 1

getRawAssetFunction · 0.85

Tested by 1

testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…