Files
vps-management-bot/node_modules/bare-fs/README.md

30 lines
354 B
Markdown
Raw Normal View History

2026-03-21 01:10:53 +08:00
# bare-fs
Native file system operations for Javascript.
```
npm i bare-fs
```
## Usage
```js
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