{"id":20377757,"url":"https://github.com/rolandjitsu/rxjs-file","last_synced_at":"2026-06-01T03:31:56.627Z","repository":{"id":57355907,"uuid":"146727954","full_name":"rolandjitsu/rxjs-file","owner":"rolandjitsu","description":"RxJS File utils","archived":false,"fork":false,"pushed_at":"2020-09-06T04:52:09.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-30T07:59:12.469Z","etag":null,"topics":["arraybuffer","file","file-reader","rxjs","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rolandjitsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-30T09:35:28.000Z","updated_at":"2020-09-06T04:51:01.000Z","dependencies_parsed_at":"2022-09-05T21:30:25.175Z","dependency_job_id":null,"html_url":"https://github.com/rolandjitsu/rxjs-file","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rolandjitsu/rxjs-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Frxjs-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Frxjs-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Frxjs-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Frxjs-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolandjitsu","download_url":"https://codeload.github.com/rolandjitsu/rxjs-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandjitsu%2Frxjs-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arraybuffer","file","file-reader","rxjs","typescript"],"created_at":"2024-11-15T01:46:23.488Z","updated_at":"2026-06-01T03:31:56.605Z","avatar_url":"https://github.com/rolandjitsu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxJS File\n\n\u003e A small package with a couple of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) utils for [RxJS](https://rxjs-dev.firebaseapp.com/).\n\n[![npm](https://img.shields.io/npm/v/rxjs-file.svg?style=flat-square)](https://www.npmjs.com/package/rxjs-file)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/rolandjitsu/rxjs-file/Test?label=tests\u0026style=flat-square)](https://github.com/rolandjitsu/rxjs-file/actions?query=workflow%3ATest)\n[![Coveralls github branch](https://img.shields.io/coveralls/github/rolandjitsu/rxjs-file/master?style=flat-square)](https://coveralls.io/github/rolandjitsu/rxjs-file?branch=master)\n\n\n# Table of Contents\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [Contribute](#contribute)\n\n\n### Installation\n----------------\nYou can install this package from [NPM](https://www.npmjs.com):\n```bash\nnpm add rxjs rxjs-file\n```\n\nOr with [Yarn](https://yarnpkg.com/en):\n```bash\nyarn add rxjs rxjs-file\n```\n\n#### CDN\nFor CDN, you can use [unpkg](https://unpkg.com):\n\n[https://unpkg.com/rxjs-file/dist/bundles/rxjs-file.umd.min.js](https://unpkg.com/rxjs-file/dist/bundles/rxjs-file.umd.min.js)\n\nThe global namespace for rxjs-file is `rxjsFile`:\n```js\nconst {toArrayBuffer} = rxjsFile;\n\ntoArrayBuffer(file)\n    .subscribe(buffer =\u003e {\n        // Do something with the buffer \n    });\n```\n\n\n### Usage\n---------\n\n#### ES6\nRead a file as [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer):\n```ts\nimport {toArrayBuffer} from 'rxjs-file';\n\ntoArrayBuffer(file)\n    .subscribe(buffer =\u003e {\n        // Do something with the buffer \n    });\n```\n\nRead the file as ArrayBuffer in chunks:\n```ts\nimport {toArrayBuffer} from 'rxjs-file';\n\ntoArrayBuffer(file, {chunkSize: 1000 /* bytes */})\n    .subscribe(chunk =\u003e {\n        // Do something with each chunk\n    });\n```\n\nRead a file as text:\n```ts\nimport {toString} from 'rxjs-file';\n\ntoString(file)\n    .subscribe(str =\u003e {\n        // Do something with the string\n    });\n```\n\n#### CommonJS\nRead a file as ArrayBuffer:\n```ts\nconst {toArrayBuffer} = require('rxjs-file');\n\ntoArrayBuffer(file)\n    .subscribe(buffer =\u003e {\n        // Do something with the buffer \n    });\n```\n\n### Contribute\n--------------\nIf you wish to contribute, please use the following guidelines:\n* Use [Conventional Commits](https://conventionalcommits.org)\n* Use `[ci skip]` in commit messages to skip a build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandjitsu%2Frxjs-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolandjitsu%2Frxjs-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandjitsu%2Frxjs-file/lists"}