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

NameTypeDescription
chunkstring | Buffer | Uint8ArrayData to write.
encodingstringEncoding for a string chunk.
callbackfunctionOptional completion callback.

Return Value

boolean

Whether further writes can proceed without waiting for drain.

Working Example

Example Snippetnodejs
process.stdout.write("ready\n");
Node.js Reference