How to use the File function from buffer

Find comprehensive JavaScript buffer.File code examples handpicked from public code repositorys.

11
12
13
14
15
16
17
18
19
20
  lastModified: Date.now() - 1e6,
};

async function run(n, bytes, operation) {
  const buff = Buffer.allocUnsafe(bytes);
  const source = new File(buff, 'dummy.txt', options);
  bench.start();
  for (let i = 0; i < n; i++) {
    switch (operation) {
      case 'text':
fork icon3
star icon5
watch icon5