Merge pull request #6185 from frankebersoll/master

Node.js: Added child_process.spawnSync
This commit is contained in:
Horiuchi_H
2015-10-09 16:21:15 +09:00
2 changed files with 28 additions and 0 deletions
+20
View File
@@ -868,6 +868,26 @@ declare module "child_process" {
env?: any;
encoding?: string;
}): ChildProcess;
export function spawnSync(command: string, args?: string[], options?: {
cwd?: string;
input?: string | Buffer;
stdio?: any;
env?: any;
uid?: number;
gid?: number;
timeout?: number;
maxBuffer?: number;
killSignal?: string;
encoding?: string;
}): {
pid: number;
output: string[];
stdout: string | Buffer;
stderr: string | Buffer;
status: number;
signal: string;
error: Error;
};
export function execSync(command: string, options?: {
cwd?: string;
input?: string|Buffer;