Sync API
If you input and output datasets are not too large and fit into memory, the sync API provides a convenient function to transform your data.
The signature is const records = transform(records, [options], handler)
.
Due to its synchronous nature, not all options are honoured. The user handler function must only be written in synchronous mode, with expecting a callback in its second argument.
Example
The sync example illustrates how to use this API.