mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
This adds a new API to allow the bundled script in SEA to query the list of assets. PR-URL: https://github.com/nodejs/node/pull/59661 Refs: https://github.com/nodejs/single-executable/discussions/112 Reviewed-By: Darshan Sen <raisinten@gmail.com>
10 lines
212 B
JavaScript
10 lines
212 B
JavaScript
'use strict';
|
|
|
|
const { isSea, getAssetKeys } = require('node:sea');
|
|
const assert = require('node:assert');
|
|
|
|
assert(isSea());
|
|
|
|
const keys = getAssetKeys();
|
|
console.log('Asset keys:', JSON.stringify(keys.sort()));
|