Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95244132
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
Sat, Dec 14, 01:24
Size
717 B
Mime Type
text/x-java
Expires
Mon, Dec 16, 01:24 (2 d)
Engine
blob
Format
Raw Data
Handle
22944008
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