The callback API transform all the records and buffers the results into a single dataset which is passed to a user provided function. As a consequence, the resulting dataset must fit into memory. It must be used only when the input source is not too big.
The signature is
const stream = transform(records, [options], handler, [callback]).
In the callback example, the user function shift the cells of every records.
This example is available with the command