1/*
2 Using nodejs' fs module you can create a WriteStream
3 to handle raw stream of bytes and buffers.
4*/
5
6const path = "path/to/the/file";
7
8array = BigInt64Array(0);
9buffer = Buffer.from(array.buffer)
10
11fs.createWriteStream(path).write(buffer);
1fs = require('fs');
2fs.writeFile('helloworld.txt', 'Hello World!', function (err) {
3 if (err) return console.log(err);
4 console.log('Hello World > helloworld.txt');
5});
6