MCPcopy Create free account
hub / github.com/delinoio/oss / windowsTerminationEnvironment

Function windowsTerminationEnvironment

scripts/spawn-dev-server.mjs:15–24  ·  view source on GitHub ↗
(source = process.env)

Source from the content-addressed store, hash-verified

13class PosixProcessGroupExitTimeout extends Error {}
14
15export function windowsTerminationEnvironment(source = process.env) {
16 const normalizedSource = new Map(
17 Object.entries(source).map(([name, value]) => [name.toUpperCase(), value]),
18 );
19 return Object.fromEntries(
20 windowsTerminationEnvironmentNames
21 .filter((name) => normalizedSource.has(name))
22 .map((name) => [name, normalizedSource.get(name)]),
23 );
24}
25
26export function terminateWindowsProcessTree(child, signal) {
27 const taskkill = spawn(

Callers 1

Calls 4

entriesMethod · 0.80
hasMethod · 0.80
mapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected