| 103 | } |
| 104 | |
| 105 | export interface BunShellOutput { |
| 106 | readonly stdout: Buffer |
| 107 | readonly stderr: Buffer |
| 108 | readonly exitCode: number |
| 109 | |
| 110 | /** |
| 111 | * Read from stdout as a string |
| 112 | */ |
| 113 | text(encoding?: BufferEncoding): string |
| 114 | |
| 115 | /** |
| 116 | * Read from stdout as a JSON object |
| 117 | */ |
| 118 | json(): any |
| 119 | |
| 120 | /** |
| 121 | * Read from stdout as an ArrayBuffer |
| 122 | */ |
| 123 | arrayBuffer(): ArrayBuffer |
| 124 | |
| 125 | /** |
| 126 | * Read from stdout as an Uint8Array |
| 127 | */ |
| 128 | bytes(): Uint8Array |
| 129 | |
| 130 | /** |
| 131 | * Read from stdout as a Blob |
| 132 | */ |
| 133 | blob(): Blob |
| 134 | } |
| 135 | |
| 136 | export type BunShellError = Error & BunShellOutput |
no outgoing calls
no test coverage detected