{"id":19826253,"url":"https://github.com/aternosorg/armarius-io","last_synced_at":"2026-04-27T14:01:08.978Z","repository":{"id":224043911,"uuid":"762245249","full_name":"aternosorg/armarius-io","owner":"aternosorg","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-17T10:07:30.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-17T11:26:05.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aternosorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-23T11:30:38.000Z","updated_at":"2026-04-17T10:06:54.000Z","dependencies_parsed_at":"2024-12-31T18:52:55.103Z","dependency_job_id":"855b37fa-2d30-448e-8e6d-a0d6c96cb527","html_url":"https://github.com/aternosorg/armarius-io","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"8135d468005079b4901e4f8f38ae94fe863c28e3"},"previous_names":["aternosorg/armarius-io"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/aternosorg/armarius-io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aternosorg%2Farmarius-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aternosorg%2Farmarius-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aternosorg%2Farmarius-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aternosorg%2Farmarius-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aternosorg","download_url":"https://codeload.github.com/aternosorg/armarius-io/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aternosorg%2Farmarius-io/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32339290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":[],"created_at":"2024-11-12T11:09:53.605Z","updated_at":"2026-04-27T14:01:08.938Z","avatar_url":"https://github.com/aternosorg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# armarius-io\n\n## About\n\nThis module contains implementations for reading from and writing to files, as well as implementations for \ndeflate compression using various JavaScript APIs.\nIt is mainly used by the [armarius](https://github.com/aternosorg/armarius/) module.\n\nContained are IO contexts for Blob object (read only), ArrayBuffers, and Node.js FileHandle objects. \nCompression contexts exist for the [CompressionStreams API](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream),\nthe Node.js zlib module, and the fflate library.\n\n## Installation\n\nArmarius-IO can be installed using npm:\n\n```shell\nnpm install armarius-io\n```\n\n## Usage\n\n### IO contexts\n\nIO contexts are objects that extend the `IO` class and can be used to read from or write to an underlying file or buffer.\nThis library contains the following IO contexts:\n * `ArrayBufferIO` - for reading from and writing to an ArrayBuffer\n * `BlobIO` - for reading from a Blob or JavaScript File object\n * `NodeFileIO` - for reading from and writing to a Node.js FileHandle object\n\n#### ArrayBufferIO\n\n```javascript\nlet data = new Uint8Array(123);\nlet io = new ArrayBufferIO(data.buffer, data.byteOffset, data.byteLength);\n```\n\n#### BlobIO\n\n```javascript\nlet file = input.files[0];\nlet io = new BlobIO(file);\n```\n\n#### NodeFileIO\n\n```javascript\nlet file = await fs.promises.open('file.txt', 'r+');\nlet stat = await file.stat();\nlet io = new NodeFileIO(file, 0, stat.size);\n```\n\n### DataStreams\n\nDataStream objects can be used to read data from a source. All IO contexts also implement `DataStream`.\n\n### DataProcessors\n\nDataProcessor objects read and transform data from a `DataStream`. This library includes DataProcessors for deflate compression using various JavaScript APIs.\n\n * `NativeDeflateDataProcessor` and `NativeInflateDataProcessor` - for using the [CompressionStreams API](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream)\n * `NodeDeflateDataProcessor` and `NodeInflateDataProcessor` - for using the Node.js zlib module\n * `FflateDeflateDataProcessor` and `FflateInflateDataProcessor` - for using the fflate library\n * `DefaultDeflateDataProcessor` and `DefaultInflateDataProcessor` - for using the best available compression method\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faternosorg%2Farmarius-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faternosorg%2Farmarius-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faternosorg%2Farmarius-io/lists"}