Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103726283
index.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Mar 4, 08:11
Size
717 B
Mime Type
text/x-java
Expires
Thu, Mar 6, 08:11 (2 d)
Engine
blob
Format
Raw Data
Handle
24649870
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
index.d.ts
View Options
/// <reference types="node"/>
declare namespace isInteractive {
interface Options {
/**
The stream to check.
@default process.stdout
*/
readonly stream?: NodeJS.WritableStream;
}
}
/**
Check if stdout or stderr is [interactive](https://unix.stackexchange.com/a/43389/7678).
It checks that the stream is [TTY](https://jameshfisher.com/2017/12/09/what-is-a-tty/), not a dumb terminal, and not running in a CI.
This can be useful to decide whether to present interactive UI or animations in the terminal.
@example
```
import isInteractive = require('is-interactive');
isInteractive();
//=> true
```
*/
declare function isInteractive(options?: isInteractive.Options): boolean;
export = isInteractive;
Event Timeline
Log In to Comment