mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-10 06:01:11 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
node_modules/get-stdin
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