PortablePosPrinterHamekara/node_modules/bare-fs
mehranz c2686e7110 initial commit 2025-11-15 13:33:50 +03:30
..
lib initial commit 2025-11-15 13:33:50 +03:30
prebuilds initial commit 2025-11-15 13:33:50 +03:30
CMakeLists.txt initial commit 2025-11-15 13:33:50 +03:30
LICENSE initial commit 2025-11-15 13:33:50 +03:30
README.md initial commit 2025-11-15 13:33:50 +03:30
binding.c initial commit 2025-11-15 13:33:50 +03:30
binding.js initial commit 2025-11-15 13:33:50 +03:30
index.d.ts initial commit 2025-11-15 13:33:50 +03:30
index.js initial commit 2025-11-15 13:33:50 +03:30
package.json initial commit 2025-11-15 13:33:50 +03:30
promises.d.ts initial commit 2025-11-15 13:33:50 +03:30
promises.js initial commit 2025-11-15 13:33:50 +03:30

README.md

bare-fs

Native file system operations for Javascript.

npm i bare-fs

Usage

const fs = require('bare-fs')

const fd = await fs.open('hello.txt')

const buffer = Buffer.alloc(1024)

try {
  const length = await fs.read(fd, buffer)

  console.log('Read', length, 'bytes')
} finally {
  await fs.close(fd)
}

License

Apache-2.0