Skip to content
Myr

Allow setting the `windowsHide` option (#388)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by Sindre Sorhus · parent ecdbad3 · Browse files · 4 files+17 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+17 added−2 removed

  • other:+17 added−2 removed

4 files+17 added−2 removed

modified:index.d.ts+7 added
196 unmodified lines
197198 @default false199 */200 readonly windowsVerbatimArguments?: boolean;201202 /**203 On Windows, do not create a new console window. Please note this also prevents `CTRL-C` [from working](https://github.com/nodejs/node/issues/29837) on Windows.204205 @default true206 */207 readonly windowsHide?: boolean;208 }209210 interface Options<EncodingType = string> extends CommonOptions<EncodingType> {211 /**
318 unmodified lines
modified:index.js+2 added-2 removed
40 unmodified lines
41 encoding: 'utf8',42 reject: true,43 cleanup: true,44 all: false,45 ...options,46 windowsHide: true45 windowsHide: true,46 ...options47 };4849 options.env = getEnv(options);50
206 unmodified lines
modified:index.test-d.ts+1 added
modified:readme.md+7 added
514 unmodified lines
515Default: `false`516517If `true`, no quoting or escaping of arguments is done on Windows. Ignored on other platforms. This is set to `true` automatically when the `shell` option is `true`.518519#### windowsHide520521Type: `boolean`<br>522Default: `true`523524On Windows, do not create a new console window. Please note this also prevents `CTRL-C` [from working](https://github.com/nodejs/node/issues/29837) on Windows.525526#### nodePath *(for `.node()` only)*527528Type: `string`<br>529Default: [`process.execPath`](https://nodejs.org/api/process.html#process_process_execpath)
96 unmodified lines