cno-read-by-block
Version:
Micropackage: use NodeJS's promise API to asynchronously read a file by its optimal blocksize.
41 lines (37 loc) • 2.37 kB
Markdown
# cno-read-by-block
[](https://github.com/RichardLitt/standard-readme)
[](https://semver.org/spec/v2.0.0.html)
[](https://conventionalcommits.org)
[](https://github.com/Anadian/cno-read-by-block/blob/main/LICENSE)
[](https://github.com/Anadian/cno-read-by-block/actions/workflows/ci.yml)
[](https://coveralls.io/github/Anadian/cno-read-by-block?branch=main)
[](https://www.npmjs.com/package/cno-read-by-block)
> Micropackage: use NodeJS's promise API to asynchronously read a file by its optimal blocksize.
# Table of Contents
- [Background](#Background)
- [Install](#Install)
- [Usage](#Usage)
- [API](#API)
- [Contributing](#Contributing)
- [License](#License)
# Background
# Install
Available on the [npm registry](https://www.npmjs.com/package/cno-test) as `cno-read-by-block`.
Adding it to project using [pnpm](https://pnpm.io/cli/add):
```sh
pnpm add --save cno-read-by-block
```
It can, of course, also be installed by [npm](https://docs.npmjs.com/cli/v8/commands/npm-install) or [yarn](https://yarnpkg.com/getting-started/usage) using the normal methods.
# Usage
```js
import ReadByBlock from 'cno-read-by-block'; // Default export is a full "namespace".
import { ReadByBlockFromOptions } from 'cno-read-by-block'; // Just one function.
```
# API
See [API.md](API.md) for full API.
# Contributing
Changes are tracked in [CHANGELOG.md](CHANGELOG.md).
# License
MIT ©2024 Anadian
SEE LICENSE IN [LICENSE](LICENSE)
[](http://creativecommons.org/licenses/by-sa/4.0/)This project's documentation is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).