Process
process.stdout.write()
Writes a string or byte chunk to stdout without adding a newline. A false result signals that a producer should wait for drain before continuing; timing depends on the destination.
Formal Syntax & Structure
nodejs syntaxnodejs
process.stdout.write(chunk[, encoding][, callback])Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| chunk | string | Buffer | Uint8Array | Data to write. |
| encoding | string | Encoding for a string chunk. |
| callback | function | Optional completion callback. |
Return Value
boolean
Whether further writes can proceed without waiting for drain.
Working Example
Example Snippetnodejs
process.stdout.write("ready\n");