Constructors
constructor
- new ProcessInfo(__namedParameters?): ProcessInfo
-
Parameters
-
__namedParameters: {
dir: undefined | string;
exclude: undefined | RegExp;
} = {}
-
dir: undefined | string
-
exclude: undefined | RegExp
Accessors
Static
exec
- get exec(): typeof exec
-
Returns typeof exec
Static
execFileSync
- get execFileSync(): {
(file): Buffer;
(file, options): string;
(file, options): Buffer;
(file, options?): string | Buffer;
(file, args): Buffer;
(file, args, options): string;
(file, args, options): Buffer;
(file, args?, options?): string | Buffer;
}
-
Returns {
(file): Buffer;
(file, options): string;
(file, options): Buffer;
(file, options?): string | Buffer;
(file, args): Buffer;
(file, args, options): string;
(file, args, options): Buffer;
(file, args?, options?): string | Buffer;
}
-
- (file): Buffer
-
Returns Buffer
- (file, options): string
-
Parameters
-
file: string
-
options: WithExternalID<ExecFileSyncOptionsWithStringEncoding>
Returns string
- (file, options): Buffer
-
Parameters
-
file: string
-
options: WithExternalID<ExecFileSyncOptionsWithBufferEncoding>
Returns Buffer
- (file, options?): string | Buffer
-
Returns string | Buffer
- (file, args): Buffer
-
Parameters
-
file: string
-
args: readonly string[]
Returns Buffer
- (file, args, options): string
-
Parameters
-
file: string
-
args: readonly string[]
-
options: WithExternalID<ExecFileSyncOptionsWithStringEncoding>
Returns string
- (file, args, options): Buffer
-
Parameters
-
file: string
-
args: readonly string[]
-
options: WithExternalID<ExecFileSyncOptionsWithBufferEncoding>
Returns Buffer
- (file, args?, options?): string | Buffer
-
Parameters
-
file: string
-
Optional
args: readonly string[]
-
Optional
options: WithExternalID<ExecFileSyncOptions>
Returns string | Buffer
Static
execSync
- get execSync(): {
(command): Buffer;
(command, options): string;
(command, options): Buffer;
(command, options?): string | Buffer;
}
-
Returns {
(command): Buffer;
(command, options): string;
(command, options): Buffer;
(command, options?): string | Buffer;
}
-
- (command): Buffer
-
Returns Buffer
- (command, options): string
-
Parameters
-
command: string
-
options: WithExternalID<ExecSyncOptionsWithStringEncoding>
Returns string
- (command, options): Buffer
-
Parameters
-
command: string
-
options: WithExternalID<ExecSyncOptionsWithBufferEncoding>
Returns Buffer
- (command, options?): string | Buffer
-
Returns string | Buffer
Static
fork
- get fork(): {
(modulePath, options?): ChildProcess;
(modulePath, args?, options?): ChildProcess;
}
-
Returns {
(modulePath, options?): ChildProcess;
(modulePath, args?, options?): ChildProcess;
}
-
- (modulePath, options?): ChildProcess
-
Parameters
-
modulePath: string
-
Optional
options: ForkOptions
Returns ChildProcess
- (modulePath, args?, options?): ChildProcess
-
Parameters
-
modulePath: string
-
Optional
args: readonly string[]
-
Optional
options: WithExternalID<ForkOptions>
Returns ChildProcess
Static
spawn
- get spawn(): {
(command, options?): ChildProcessWithoutNullStreams;
(command, options): ChildProcessByStdio<Writable, Readable, Readable>;
(command, options): ChildProcessByStdio<Writable, Readable, null>;
(command, options): ChildProcessByStdio<Writable, null, Readable>;
(command, options): ChildProcessByStdio<null, Readable, Readable>;
(command, options): ChildProcessByStdio<Writable, null, null>;
(command, options): ChildProcessByStdio<null, Readable, null>;
(command, options): ChildProcessByStdio<null, null, Readable>;
(command, options): ChildProcessByStdio<null, null, null>;
(command, options): ChildProcess;
(command, args?, options?): ChildProcessWithoutNullStreams;
(command, args, options): ChildProcessByStdio<Writable, Readable, Readable>;
(command, args, options): ChildProcessByStdio<Writable, Readable, null>;
(command, args, options): ChildProcessByStdio<Writable, null, Readable>;
(command, args, options): ChildProcessByStdio<null, Readable, Readable>;
(command, args, options): ChildProcessByStdio<Writable, null, null>;
(command, args, options): ChildProcessByStdio<null, Readable, null>;
(command, args, options): ChildProcessByStdio<null, null, Readable>;
(command, args, options): ChildProcessByStdio<null, null, null>;
(command, args, options): ChildProcess;
}
-
Returns {
(command, options?): ChildProcessWithoutNullStreams;
(command, options): ChildProcessByStdio<Writable, Readable, Readable>;
(command, options): ChildProcessByStdio<Writable, Readable, null>;
(command, options): ChildProcessByStdio<Writable, null, Readable>;
(command, options): ChildProcessByStdio<null, Readable, Readable>;
(command, options): ChildProcessByStdio<Writable, null, null>;
(command, options): ChildProcessByStdio<null, Readable, null>;
(command, options): ChildProcessByStdio<null, null, Readable>;
(command, options): ChildProcessByStdio<null, null, null>;
(command, options): ChildProcess;
(command, args?, options?): ChildProcessWithoutNullStreams;
(command, args, options): ChildProcessByStdio<Writable, Readable, Readable>;
(command, args, options): ChildProcessByStdio<Writable, Readable, null>;
(command, args, options): ChildProcessByStdio<Writable, null, Readable>;
(command, args, options): ChildProcessByStdio<null, Readable, Readable>;
(command, args, options): ChildProcessByStdio<Writable, null, null>;
(command, args, options): ChildProcessByStdio<null, Readable, null>;
(command, args, options): ChildProcessByStdio<null, null, Readable>;
(command, args, options): ChildProcessByStdio<null, null, null>;
(command, args, options): ChildProcess;
}
-
- (command, options?): ChildProcessWithoutNullStreams
-
Parameters
-
command: string
-
Optional
options: WithExternalID<SpawnOptionsWithoutStdio>
Returns ChildProcessWithoutNullStreams
- (command, options): ChildProcessByStdio<Writable, Readable, Readable>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>>
Returns ChildProcessByStdio<Writable, Readable, Readable>
- (command, options): ChildProcessByStdio<Writable, Readable, null>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>>
Returns ChildProcessByStdio<Writable, Readable, null>
- (command, options): ChildProcessByStdio<Writable, null, Readable>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>>
Returns ChildProcessByStdio<Writable, null, Readable>
- (command, options): ChildProcessByStdio<null, Readable, Readable>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>>
Returns ChildProcessByStdio<null, Readable, Readable>
- (command, options): ChildProcessByStdio<Writable, null, null>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>>
Returns ChildProcessByStdio<Writable, null, null>
- (command, options): ChildProcessByStdio<null, Readable, null>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>>
Returns ChildProcessByStdio<null, Readable, null>
- (command, options): ChildProcessByStdio<null, null, Readable>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>>
Returns ChildProcessByStdio<null, null, Readable>
- (command, options): ChildProcessByStdio<null, null, null>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>>
Returns ChildProcessByStdio<null, null, null>
- (command, options): ChildProcess
-
Returns ChildProcess
- (command, args?, options?): ChildProcessWithoutNullStreams
-
Parameters
-
command: string
-
Optional
args: readonly string[]
-
Optional
options: SpawnOptionsWithoutStdio
Returns ChildProcessWithoutNullStreams
- (command, args, options): ChildProcessByStdio<Writable, Readable, Readable>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>
Returns ChildProcessByStdio<Writable, Readable, Readable>
- (command, args, options): ChildProcessByStdio<Writable, Readable, null>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>
Returns ChildProcessByStdio<Writable, Readable, null>
- (command, args, options): ChildProcessByStdio<Writable, null, Readable>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>
Returns ChildProcessByStdio<Writable, null, Readable>
- (command, args, options): ChildProcessByStdio<null, Readable, Readable>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>
Returns ChildProcessByStdio<null, Readable, Readable>
- (command, args, options): ChildProcessByStdio<Writable, null, null>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>
Returns ChildProcessByStdio<Writable, null, null>
- (command, args, options): ChildProcessByStdio<null, Readable, null>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>
Returns ChildProcessByStdio<null, Readable, null>
- (command, args, options): ChildProcessByStdio<null, null, Readable>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>
Returns ChildProcessByStdio<null, null, Readable>
- (command, args, options): ChildProcessByStdio<null, null, null>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>
Returns ChildProcessByStdio<null, null, null>
- (command, args, options): ChildProcess
-
Parameters
-
command: string
-
args: readonly string[]
-
options: SpawnOptions
Returns ChildProcess
Static
spawnSync
- get spawnSync(): {
(command): SpawnSyncReturns<Buffer>;
(command, options): SpawnSyncReturns<string>;
(command, options): SpawnSyncReturns<Buffer>;
(command, options?): SpawnSyncReturns<string | Buffer>;
(command, args): SpawnSyncReturns<Buffer>;
(command, args, options): SpawnSyncReturns<string>;
(command, args, options): SpawnSyncReturns<Buffer>;
(command, args?, options?): SpawnSyncReturns<string | Buffer>;
}
-
Returns {
(command): SpawnSyncReturns<Buffer>;
(command, options): SpawnSyncReturns<string>;
(command, options): SpawnSyncReturns<Buffer>;
(command, options?): SpawnSyncReturns<string | Buffer>;
(command, args): SpawnSyncReturns<Buffer>;
(command, args, options): SpawnSyncReturns<string>;
(command, args, options): SpawnSyncReturns<Buffer>;
(command, args?, options?): SpawnSyncReturns<string | Buffer>;
}
-
- (command): SpawnSyncReturns<Buffer>
-
Returns SpawnSyncReturns<Buffer>
- (command, options): SpawnSyncReturns<string>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnSyncOptionsWithStringEncoding>
Returns SpawnSyncReturns<string>
- (command, options): SpawnSyncReturns<Buffer>
-
Parameters
-
command: string
-
options: WithExternalID<SpawnSyncOptionsWithBufferEncoding>
Returns SpawnSyncReturns<Buffer>
- (command, options?): SpawnSyncReturns<string | Buffer>
-
Returns SpawnSyncReturns<string | Buffer>
- (command, args): SpawnSyncReturns<Buffer>
-
Parameters
-
command: string
-
args: readonly string[]
Returns SpawnSyncReturns<Buffer>
- (command, args, options): SpawnSyncReturns<string>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: WithExternalID<SpawnSyncOptionsWithStringEncoding>
Returns SpawnSyncReturns<string>
- (command, args, options): SpawnSyncReturns<Buffer>
-
Parameters
-
command: string
-
args: readonly string[]
-
options: WithExternalID<SpawnSyncOptionsWithBufferEncoding>
Returns SpawnSyncReturns<Buffer>
- (command, args?, options?): SpawnSyncReturns<string | Buffer>
-
Parameters
-
command: string
-
Optional
args: readonly string[]
-
Optional
options: WithExternalID<SpawnSyncOptions>
Returns SpawnSyncReturns<string | Buffer>
Methods
Private
#hasNewerFiles
- #hasNewerFiles(node, stats, exclude): boolean
-
Parameters
-
-
stats: Map<string, null | Stats>
-
exclude: RegExp
Returns boolean
Private
#statFiles
- #statFiles(node, stats, exclude): Promise<void>[]
-
Parameters
-
-
stats: Map<string, null | Stats>
-
exclude: RegExp
Returns Promise<void>[]
clear
- clear(): void
-
Returns void
erase
- erase(): Promise<void>
-
Returns Promise<void>
eraseSync
- eraseSync(): void
-
Returns void
externalIDsChanged
- externalIDsChanged(filter?): Promise<Map<string, ProcessInfoNode>>
-
Parameters
-
filter: ((p, node) => boolean) = ...
-
- (p, node): boolean
-
Returns boolean
save
- save(): Promise<void>
-
Returns Promise<void>
saveSync
- saveSync(): Promise<void>
-
Returns Promise<void>
Static
load
- load(__namedParameters): Promise<ProcessInfo>
-
Parameters
-
__namedParameters: Object
Static
loadSync
- loadSync(__namedParameters): ProcessInfo
-
Parameters
-
__namedParameters: Object
Get a subset of this.externalIDs where one or more of the files have changed since the date on the node.