holepunchto/bare-fs

Native file system operations for Bare

JavaScript

27

312 commits

updated Oct 9, 2026

See the code

README

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

holepunchto/bare-fs

Native file system operations for Bare

JavaScript

27

312 commits

updated Oct 9, 2026

See the code

README

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

Project health

Latest release

4.8.4 · Oct 9, 2026

Releases this year

19