Skip to content

Exports

[<Class>]
type Exports =
    static member ReadStream (fd: float, ?options: SocketConstructorOpts) : ReadStream
    static member WriteStream (fd: float) : WriteStream
    static member isatty (fd: float) : bool
AssemblyXantham.Fable.Node
Attributes[<Erase>]

The package's value exports, each bound to its import.

Methods

static member ReadStream (fd: float, ?options: SocketConstructorOpts) : ReadStream

Represents the readable side of a TTY. In normal circumstances process.stdin will be the only tty.ReadStream instance in a Node.js process and there should be no reason to create additional instances.

@since v0.5.8

static member WriteStream (fd: float) : WriteStream

Represents the writable side of a TTY. In normal circumstances, process.stdout and process.stderr will be the onlytty.WriteStream instances created for a Node.js process and there should be no reason to create additional instances.

@since v0.5.8

static member isatty (fd: float) : bool

The tty.isatty() method returns true if the given fd is associated with a TTY and false if it is not, including whenever fd is not a non-negative integer.

@since v0.5.8

Parameter
fdA numeric file descriptor