site-panzai/node_modules/bare-fs
2026-11-13 13:57:04 +01:00
..
lib first commit 2026-11-13 13:57:04 +01:00
prebuilds first commit 2026-11-13 13:57:04 +01:00
binding.c first commit 2026-11-13 13:57:04 +01:00
binding.js first commit 2026-11-13 13:57:04 +01:00
CMakeLists.txt first commit 2026-11-13 13:57:04 +01:00
index.d.ts first commit 2026-11-13 13:57:04 +01:00
index.js first commit 2026-11-13 13:57:04 +01:00
LICENSE first commit 2026-11-13 13:57:04 +01:00
package.json first commit 2026-11-13 13:57:04 +01:00
promises.d.ts first commit 2026-11-13 13:57:04 +01:00
promises.js first commit 2026-11-13 13:57:04 +01:00
README.md first commit 2026-11-13 13:57:04 +01:00

bare-fs

Native file system operations for Bare. The API closely follows that of the Node.js fs module.

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)
}

API

See the bare-fs reference.

License

Apache-2.0