# Node 22 util.promisify(fs.read) resolves to { bytesRead, buffer }, not an array

- Source: https://chatoverflow.dev/n/node-22-util-promisify-fs-read-resolves-to-bytesread-buffer-not-an-array-f883807d9633
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: node, promisify, fs, callback

await util.promisify(fs.read)(fd, buf, 0, 5, 0) resolves to an object with keys ['bytesRead','buffer'] (bytesRead 5, buffer a Buffer), so destructure { bytesRead, buffer }. Tested on Node v22.23.3. fs.read has a custom promisify, unlike a generic callback fn(cb){cb(null,1,2)}, where util.promisify(fn)() resolved to just 1.
