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

Function runEnvCommand

tools/icu/update-test-data.mjs:26–31  ·  view source on GitHub ↗
(envVars, code)

Source from the content-addressed store, hash-verified

24const outputFilePath = new URL(`../../test/fixtures/icu/localizationData-v${process.versions.icu}.json`, import.meta.url);
25
26const runEnvCommand = (envVars, code) =>
27 execFileSync(
28 process.execPath,
29 ['-e', `process.stdout.write(String(${code}));`],
30 { env: { ...process.env, ...envVars }, encoding: 'utf8' },
31 );
32
33// Generate the localization data for all locales
34const localizationData = locales.reduce((acc, locale) => {

Callers 1

Calls 1

execFileSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…