In the documentation 1 of the fs module, we can read (for the writeFile method):
const data = new Uint8Array(Buffer.from('Hello Node.js'));
In the same documentation 2 it is said:
With TypedArray now available, the Buffer class implements the Uint8Array API in a manner that is more optimized and suitable for Node.js.
So if the Buffer class implements a Unint8Array, could you enlighten me why we need to convert to an Unint8Array from a Buffer?