Mmap
Bun

method

crypto.Hmac.map

fn: (data: any, options?: Abortable) => any,

This method allows mapping over the stream. The fn function will be called for every chunk in the stream. If the fn function returns a promise - that promise will be awaited before being passed to the result stream.

@param fn

a function to map over every chunk in the stream. Async or not.

@returns

a stream mapped with the function fn.