package
Native file system operations for Bare
npm install bare-fsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Native file system operations for Bare. The API closely follows that of the Node.js fs module.
npm i bare-fsconst 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)
}See the bare-fs reference.
Apache-2.0
Estimated unpacked size across 12 packages.
6.9 MB
Includes dependencies.
5 direct dependencies.
^2.2.2
2.5.7
^3.0.0
3.1.3
^1.3.2
1.3.2
^2.5.4
2.9.2
^2.6.4
2.13.4