mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 21:14:45 +00:00
.
This commit is contained in:
parent
9fff29ba6c
commit
00c3b50fca
7278 changed files with 0 additions and 1778943 deletions
33
node_modules/get-stdin/index.d.ts
generated
vendored
33
node_modules/get-stdin/index.d.ts
generated
vendored
|
@ -1,33 +0,0 @@
|
|||
/// <reference types="node"/>
|
||||
|
||||
declare const getStdin: {
|
||||
/**
|
||||
Get [`stdin`](https://nodejs.org/api/process.html#process_process_stdin) as a `string`.
|
||||
|
||||
@returns A promise that is resolved when the `end` event fires on the `stdin` stream, indicating that there is no more data to be read. In a TTY context, an empty `string` is returned.
|
||||
|
||||
@example
|
||||
```
|
||||
// example.ts
|
||||
import getStdin = require('get-stdin');
|
||||
|
||||
(async () => {
|
||||
console.log(await getStdin());
|
||||
//=> 'unicorns'
|
||||
})
|
||||
|
||||
// $ echo unicorns | ts-node example.ts
|
||||
// unicorns
|
||||
```
|
||||
*/
|
||||
(): Promise<string>;
|
||||
|
||||
/**
|
||||
Get [`stdin`](https://nodejs.org/api/process.html#process_process_stdin) as a `Buffer`.
|
||||
|
||||
@returns A promise that is resolved when the `end` event fires on the `stdin` stream, indicating that there is no more data to be read. In a TTY context, an empty `Buffer` is returned.
|
||||
*/
|
||||
buffer(): Promise<Buffer>;
|
||||
};
|
||||
|
||||
export = getStdin;
|
Loading…
Add table
Add a link
Reference in a new issue