Last commit july 5th

This commit is contained in:
2024-07-05 13:46:23 +02:00
parent dad0d86e8c
commit b0e4dfbb76
24982 changed files with 2621219 additions and 413 deletions

56
spa/node_modules/read-chunk/readme.md generated vendored Normal file
View File

@@ -0,0 +1,56 @@
# read-chunk [![Build Status](https://travis-ci.org/sindresorhus/read-chunk.svg?branch=master)](https://travis-ci.org/sindresorhus/read-chunk)
> Read a chunk from a file
Because the built-in way requires way too much boilerplate.
## Install
```
$ npm install read-chunk
```
## Usage
```js
const readChunk = require('read-chunk');
// foo.txt => hello
readChunk.sync('foo.txt', 1, 3);
//=> 'ell'
```
## API
### readChunk(filePath, startPosition, length)
Returns a `Promise<Buffer>` with the read chunk.
### readChunk.sync(filePath, startPosition, length)
Returns a `Buffer` with the read chunk.
#### filePath
Type: `string`
#### startPosition
Type: `number`
Position to start reading.
#### length
Type: `number`
Number of bytes to read.
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)