spa/.claude/skills/thread-manager/node_modules/bare-fs
Yvan 6584c91ed1 init 2025-12-30 15:44:36 +08:00
..
lib init 2025-12-30 15:44:36 +08:00
prebuilds init 2025-12-30 15:44:36 +08:00
CMakeLists.txt init 2025-12-30 15:44:36 +08:00
LICENSE init 2025-12-30 15:44:36 +08:00
README.md init 2025-12-30 15:44:36 +08:00
binding.c init 2025-12-30 15:44:36 +08:00
binding.js init 2025-12-30 15:44:36 +08:00
index.d.ts init 2025-12-30 15:44:36 +08:00
index.js init 2025-12-30 15:44:36 +08:00
package.json init 2025-12-30 15:44:36 +08:00
promises.d.ts init 2025-12-30 15:44:36 +08:00
promises.js init 2025-12-30 15:44:36 +08:00

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