Genese complexity report

<- child_process.d.ts
Methods : 79
Complexity index : 94.2
Cyclomatic complexity : 79
Cognitive complexity
100 % Correct 79/79
0 % Warning 0/79 (threshold : 10)
0 % Error 0/79 (threshold : 20)
Cyclomatic complexity
100 % Correct 79/79
0 % Warning 0/79 (threshold : 5)
0 % Error 0/79 (threshold : 10)
Methods of child_process.d.ts
spawn Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                // overloads of spawn without 'args'
                function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
spawn Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
            
                function spawn( // -------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // --------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>, // ---------------------------------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, Readable, Readable>; // ------------------------------------------------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
spawn Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, Readable, null>; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
spawn Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, null, Readable>; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
spawn Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, Readable, Readable>; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
spawn Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, null, null>; // ----------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
spawn Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, Readable, null>; // ----------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
spawn Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, null, Readable>; // ----------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
spawn Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, null, null>; // --------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
spawn Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                function spawn(command: string, options: SpawnOptions): ChildProcess; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
spawn Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                // overloads of spawn with 'args'
                function spawn(command: string, args?: ReadonlyArray<string>, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
spawn Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
            
                function spawn( // -------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // --------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // --------------------------------------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>, // ---------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, Readable, Readable>; // ------------------------------------------------------------------------------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
spawn Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // ------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, Readable, null>; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
spawn Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // ------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, null, Readable>; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
spawn Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // ------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, Readable, Readable>; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
spawn Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // ------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<Writable, null, null>; // ----------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
spawn Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // ------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, Readable, null>; // ----------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
spawn Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // ------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, null, Readable>; // ----------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
spawn Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
                function spawn( // ----------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string>, // ------------------------------------------------ +0.3 Complexity index (+0.3 atomic)
                    options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>, // ------- +0.5 Complexity index (+0.5 atomic)
                ): ChildProcessByStdio<null, null, null>; // --------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
spawn Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
            
                function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
exec Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                
            
                // no `options` definitely means stdout/stderr are `string`.
                function exec(command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // ------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
exec Complexity Index 1.8 Cyclomatic complexity 1
                            
                                
                
            
                // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
                function exec(command: string, options: { encoding: "buffer" | null } & ExecOptions, callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; // ------- +1.8 Complexity index (+1.8 atomic)
            
                            
                        
exec Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
            
                // `options` with well known `encoding` means stdout/stderr are definitely `string`.
                function exec(command: string, options: { encoding: BufferEncoding } & ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // -------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
exec Complexity Index 2.1 Cyclomatic complexity 1
                            
                                
                
            
                // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
                // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
                function exec( // ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    options: { encoding: BufferEncoding } & ExecOptions, // ----------------------------------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, // ------------------------------------------------------------------------------------ +1.3 Complexity index (+1.3 atomic)
                ): ChildProcess; // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
exec Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
            
                // `options` without an `encoding` means stdout/stderr are definitely `string`.
                function exec(command: string, options: ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
exec Complexity Index 2.1 Cyclomatic complexity 1
                            
                                
                
            
                // fallback if nothing else matches. Worst case is always `string | Buffer`.
                function exec( // ---------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    command: string, // ---------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    options: (BaseEncodingOptions & ExecOptions) | undefined | null, // ---------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, // ----------------------------------------------------- +1.3 Complexity index (+1.3 atomic)
                ): ChildProcess; // -------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
___promisify__ Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                    function __promisify__(command: string): PromiseWithChild<{ stdout: string, stderr: string }>; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
___promisify__ Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(command: string, options: { encoding: "buffer" | null } & ExecOptions): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>; // ------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(command: string, options: { encoding: BufferEncoding } & ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>; // -------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(command: string, options: ExecOptions): PromiseWithChild<{ stdout: string, stderr: string }>; // -------------------------------------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
___promisify__ Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(command: string, options?: (BaseEncodingOptions & ExecOptions) | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
execFile Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
            
                function execFile(file: string): ChildProcess; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
execFile Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
execFile Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function execFile(file: string, args?: ReadonlyArray<string> | null): ChildProcess; // --------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
execFile Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
                function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
execFile Complexity Index 1.3 Cyclomatic complexity 1
                            
                                
                
            
                // no `options` definitely means stdout/stderr are `string`.
                function execFile(file: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // ------------------------------------------- +1.3 Complexity index (+1.3 atomic)
            
                            
                        
execFile Complexity Index 1.7 Cyclomatic complexity 1
                            
                                
                
                function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // ------- +1.7 Complexity index (+1.7 atomic)
            
                            
                        
execFile Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
            
                // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
                function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; // ----------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
execFile Complexity Index 1.9 Cyclomatic complexity 1
                            
                                
                
                function execFile( // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    file: string, // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string> | undefined | null, // ------------------------------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    options: ExecFileOptionsWithBufferEncoding, // ----------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void, // ---------------------------------------------------------------------------------------------- +0.9 Complexity index (+0.9 atomic)
                ): ChildProcess; // ------------------------------------------------------------------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
execFile Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
            
                // `options` with well known `encoding` means stdout/stderr are definitely `string`.
                function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
execFile Complexity Index 1.9 Cyclomatic complexity 1
                            
                                
                
                function execFile( // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    file: string, // ----------------------------------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string> | undefined | null, // ------------------------------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    options: ExecFileOptionsWithStringEncoding, // ----------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    callback: (error: ExecException | null, stdout: string, stderr: string) => void, // ---------------------------------------------------------------------------------------------- +0.9 Complexity index (+0.9 atomic)
                ): ChildProcess; // ------------------------------------------------------------------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
execFile Complexity Index 1.9 Cyclomatic complexity 1
                            
                                
                
            
                // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
                // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
                function execFile( // ----------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    file: string, // ------------------------------------------------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                    options: ExecFileOptionsWithOtherEncoding, // ------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, // ----------------- +1.3 Complexity index (+1.3 atomic)
                ): ChildProcess; // ------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
execFile Complexity Index 2.3 Cyclomatic complexity 1
                            
                                
                
                function execFile( // ------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    file: string, // -------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string> | undefined | null, // ---------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    options: ExecFileOptionsWithOtherEncoding, // --------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, // ------- +1.3 Complexity index (+1.3 atomic)
                ): ChildProcess; // --------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
execFile Complexity Index 1.5 Cyclomatic complexity 1
                            
                                
                
            
                // `options` without an `encoding` means stdout/stderr are definitely `string`.
                function execFile(file: string, options: ExecFileOptions, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // ------- +1.5 Complexity index (+1.5 atomic)
            
                            
                        
execFile Complexity Index 1.9 Cyclomatic complexity 1
                            
                                
                
                function execFile( // ---------------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    file: string, // ----------------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string> | undefined | null, // ------------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    options: ExecFileOptions, // ----------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    callback: (error: ExecException | null, stdout: string, stderr: string) => void // ----------------------------------------------------------------------------- +0.9 Complexity index (+0.9 atomic)
                ): ChildProcess; // ------------------------------------------------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
execFile Complexity Index 2.2 Cyclomatic complexity 1
                            
                                
                
            
                // fallback if nothing else matches. Worst case is always `string | Buffer`.
                function execFile( // ---------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    file: string, // ----------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    options: (BaseEncodingOptions & ExecFileOptions) | undefined | null, // ---------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, // ------- +1.4 Complexity index (+1.4 atomic)
                ): ChildProcess; // ------------------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
execFile Complexity Index 2.6 Cyclomatic complexity 1
                            
                                
                
                function execFile( // ---------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    file: string, // ----------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    args: ReadonlyArray<string> | undefined | null, // ------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    options: (BaseEncodingOptions & ExecFileOptions) | undefined | null, // ---------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, // ------- +1.4 Complexity index (+1.4 atomic)
                ): ChildProcess; // ------------------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
___promisify__ Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                    function __promisify__(file: string): PromiseWithChild<{ stdout: string, stderr: string }>; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
___promisify__ Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null): PromiseWithChild<{ stdout: string, stderr: string }>; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
___promisify__ Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>; // ----------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
___promisify__ Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
___promisify__ Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>; // ------------------------------------------------------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
___promisify__ Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
___promisify__ Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; // -------------------------------------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
___promisify__ Complexity Index 1.8 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__( // ---------------------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                        file: string, // ---------------------------------------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                        args: ReadonlyArray<string> | undefined | null, // ------------------------------------------------------------------------------------------------------------ +0.4 Complexity index (+0.4 atomic)
                        options: ExecFileOptionsWithOtherEncoding, // ----------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; // ------------------------------------------------------------------------------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
___promisify__ Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
___promisify__ Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
___promisify__ Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
___promisify__ Complexity Index 2 Cyclomatic complexity 1
                            
                                
                    
                    function __promisify__( // ------------------------------------------------------------------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
                        file: string, // ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
                        args: ReadonlyArray<string> | undefined | null, // -------------------------------------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                        options: (BaseEncodingOptions & ExecFileOptions) | undefined | null, // ----------------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; // --------------------------------------------------------------------------------------------------------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
fork Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function fork(modulePath: string, options?: ForkOptions): ChildProcess; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
fork Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
spawnSync Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function spawnSync(command: string): SpawnSyncReturns<Buffer>; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
spawnSync Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
spawnSync Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
spawnSync Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>; // ------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
spawnSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
spawnSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
spawnSync Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>; // ------------------------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
execSync Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function execSync(command: string): Buffer; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
execSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
execSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
execSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function execSync(command: string, options?: ExecSyncOptions): Buffer; // ------------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
execFileSync Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function execFileSync(command: string): Buffer; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
execFileSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
execFileSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
execFileSync Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer; // ------------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
execFileSync Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
execFileSync Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
execFileSync Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer; // ------------------------- +0.9 Complexity index (+0.9 atomic)