RxJS File
Table of Contents
Installation
You can install this package from NPM:
npm add rxjs rxjs-file
Or with Yarn:
yarn add rxjs rxjs-file
CDN
For CDN, you can use unpkg:
https://unpkg.com/rxjs-file/dist/bundles/rxjs-file.umd.min.js
The global namespace for rxjs-file is rxjsFile
:
const toArrayBuffer = rxjsFile; ;
Usage
ES6
Read a file as ArrayBuffer:
; toArrayBufferfile .subscribe;
Read the file as ArrayBuffer in chunks:
; toArrayBufferfile, .subscribe;
Read a file as text:
; toStringfile .subscribe;
CommonJS
Read a file as ArrayBuffer:
; toArrayBufferfile .subscribe;
Contribute
If you wish to contribute, please use the following guidelines:
- Use Conventional Commits
- Use
[ci skip]
in commit messages to skip a build