-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,450 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
[nodejsscript](../README.md) / [s](../modules/s.md) / ProcessOutput | ||
|
||
# Class: ProcessOutput | ||
|
||
[s](../modules/s.md).ProcessOutput | ||
|
||
## Hierarchy | ||
|
||
- `Error` | ||
|
||
↳ **`ProcessOutput`** | ||
|
||
## Table of contents | ||
|
||
### Methods | ||
|
||
- [captureStackTrace](s.ProcessOutput.md#capturestacktrace) | ||
- [toString](s.ProcessOutput.md#tostring) | ||
- [[custom]](s.ProcessOutput.md#[custom]) | ||
|
||
### Properties | ||
|
||
- [prepareStackTrace](s.ProcessOutput.md#preparestacktrace) | ||
- [stackTraceLimit](s.ProcessOutput.md#stacktracelimit) | ||
- [name](s.ProcessOutput.md#name) | ||
- [message](s.ProcessOutput.md#message) | ||
- [stack](s.ProcessOutput.md#stack) | ||
|
||
### Constructors | ||
|
||
- [constructor](s.ProcessOutput.md#constructor) | ||
|
||
### Accessors | ||
|
||
- [stdout](s.ProcessOutput.md#stdout) | ||
- [stderr](s.ProcessOutput.md#stderr) | ||
- [exitCode](s.ProcessOutput.md#exitcode) | ||
- [signal](s.ProcessOutput.md#signal) | ||
|
||
## Methods | ||
|
||
### captureStackTrace | ||
|
||
▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void` | ||
|
||
Create .stack property on a target object | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `targetObject` | `object` | | ||
| `constructorOpt?` | `Function` | | ||
|
||
#### Returns | ||
|
||
`void` | ||
|
||
#### Inherited from | ||
|
||
Error.captureStackTrace | ||
|
||
#### Defined in | ||
|
||
node_modules/@types/node/ts4.8/globals.d.ts:4 | ||
|
||
___ | ||
|
||
### toString | ||
|
||
▸ **toString**(): `string` | ||
|
||
#### Returns | ||
|
||
`string` | ||
|
||
#### Defined in | ||
|
||
[src/shelljs.d.ts:112](https://github.com/jaandrle/nodejsscript/blob/6b875ec/src/shelljs.d.ts#L112) | ||
|
||
___ | ||
|
||
### [custom] | ||
|
||
▸ **[custom]**(): `string` | ||
|
||
#### Returns | ||
|
||
`string` | ||
|
||
#### Defined in | ||
|
||
[src/shelljs.d.ts:117](https://github.com/jaandrle/nodejsscript/blob/6b875ec/src/shelljs.d.ts#L117) | ||
|
||
## Properties | ||
|
||
### prepareStackTrace | ||
|
||
▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` | ||
|
||
#### Type declaration | ||
|
||
▸ (`err`, `stackTraces`): `any` | ||
|
||
Optional override for formatting stack traces | ||
|
||
**`See`** | ||
|
||
https://v8.dev/docs/stack-trace-api#customizing-stack-traces | ||
|
||
##### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `err` | `Error` | | ||
| `stackTraces` | `CallSite`[] | | ||
|
||
##### Returns | ||
|
||
`any` | ||
|
||
#### Inherited from | ||
|
||
Error.prepareStackTrace | ||
|
||
#### Defined in | ||
|
||
node_modules/@types/node/ts4.8/globals.d.ts:11 | ||
|
||
___ | ||
|
||
### stackTraceLimit | ||
|
||
▪ `Static` **stackTraceLimit**: `number` | ||
|
||
#### Inherited from | ||
|
||
Error.stackTraceLimit | ||
|
||
#### Defined in | ||
|
||
node_modules/@types/node/ts4.8/globals.d.ts:13 | ||
|
||
___ | ||
|
||
### name | ||
|
||
• **name**: `string` | ||
|
||
#### Inherited from | ||
|
||
Error.name | ||
|
||
#### Defined in | ||
|
||
node_modules/typescript/lib/lib.es5.d.ts:1040 | ||
|
||
___ | ||
|
||
### message | ||
|
||
• **message**: `string` | ||
|
||
#### Inherited from | ||
|
||
Error.message | ||
|
||
#### Defined in | ||
|
||
node_modules/typescript/lib/lib.es5.d.ts:1041 | ||
|
||
___ | ||
|
||
### stack | ||
|
||
• `Optional` **stack**: `string` | ||
|
||
#### Inherited from | ||
|
||
Error.stack | ||
|
||
#### Defined in | ||
|
||
node_modules/typescript/lib/lib.es5.d.ts:1042 | ||
|
||
## Constructors | ||
|
||
### constructor | ||
|
||
• **new ProcessOutput**(`code`, `signal`, `stdout`, `stderr`, `combined`, `message`) | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `code` | `number` | | ||
| `signal` | `Signals` | | ||
| `stdout` | `string` | | ||
| `stderr` | `string` | | ||
| `combined` | `string` | | ||
| `message` | `string` | | ||
|
||
#### Overrides | ||
|
||
Error.constructor | ||
|
||
#### Defined in | ||
|
||
[src/shelljs.d.ts:111](https://github.com/jaandrle/nodejsscript/blob/6b875ec/src/shelljs.d.ts#L111) | ||
|
||
## Accessors | ||
|
||
### stdout | ||
|
||
• `get` **stdout**(): `string` | ||
|
||
#### Returns | ||
|
||
`string` | ||
|
||
#### Defined in | ||
|
||
[src/shelljs.d.ts:113](https://github.com/jaandrle/nodejsscript/blob/6b875ec/src/shelljs.d.ts#L113) | ||
|
||
___ | ||
|
||
### stderr | ||
|
||
• `get` **stderr**(): `string` | ||
|
||
#### Returns | ||
|
||
`string` | ||
|
||
#### Defined in | ||
|
||
[src/shelljs.d.ts:114](https://github.com/jaandrle/nodejsscript/blob/6b875ec/src/shelljs.d.ts#L114) | ||
|
||
___ | ||
|
||
### exitCode | ||
|
||
• `get` **exitCode**(): `number` | ||
|
||
#### Returns | ||
|
||
`number` | ||
|
||
#### Defined in | ||
|
||
[src/shelljs.d.ts:115](https://github.com/jaandrle/nodejsscript/blob/6b875ec/src/shelljs.d.ts#L115) | ||
|
||
___ | ||
|
||
### signal | ||
|
||
• `get` **signal**(): `Signals` | ||
|
||
#### Returns | ||
|
||
`Signals` | ||
|
||
#### Defined in | ||
|
||
[src/shelljs.d.ts:116](https://github.com/jaandrle/nodejsscript/blob/6b875ec/src/shelljs.d.ts#L116) |
Oops, something went wrong.