Initial commit: Torrent search and download application
This commit is contained in:
commit
e38be704ff
4313 changed files with 791544 additions and 0 deletions
29
node_modules/bare-fs/README.md
generated
vendored
Normal file
29
node_modules/bare-fs/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue