{"id":13800517,"url":"https://github.com/purescript-contrib/purescript-arraybuffer","last_synced_at":"2025-03-09T02:36:36.707Z","repository":{"id":26892294,"uuid":"30353544","full_name":"purescript-contrib/purescript-arraybuffer","owner":"purescript-contrib","description":"Bindings and implementation for mutable JavaScript ArrayBuffers.","archived":false,"fork":false,"pushed_at":"2023-02-13T06:51:10.000Z","size":295,"stargazers_count":7,"open_issues_count":4,"forks_count":14,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-19T05:02:23.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/purescript-contrib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2015-02-05T12:06:31.000Z","updated_at":"2024-06-19T02:52:15.996Z","dependencies_parsed_at":"2024-06-19T02:52:14.467Z","dependency_job_id":"dc4fab20-8c01-49fa-8f6d-4354d0ab7a60","html_url":"https://github.com/purescript-contrib/purescript-arraybuffer","commit_stats":null,"previous_names":["jacereda/purescript-arraybuffer"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-arraybuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-arraybuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-arraybuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-arraybuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript-contrib","download_url":"https://codeload.github.com/purescript-contrib/purescript-arraybuffer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242635336,"owners_count":20161437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-04T00:01:13.316Z","updated_at":"2025-03-09T02:36:36.686Z","avatar_url":"https://github.com/purescript-contrib.png","language":"PureScript","readme":"# arraybuffer\n\n[![CI](https://github.com/purescript-contrib/purescript-arraybuffer/workflows/CI/badge.svg?branch=main)](https://github.com/purescript-contrib/purescript-arraybuffer/actions?query=workflow%3ACI+branch%3Amain)\n[![Release](https://img.shields.io/github/release/purescript-contrib/purescript-arraybuffer.svg)](https://github.com/purescript-contrib/purescript-arraybuffer/releases)\n[![Pursuit](https://pursuit.purescript.org/packages/purescript-arraybuffer/badge)](https://pursuit.purescript.org/packages/purescript-arraybuffer)\n[![Maintainer: jacereda](https://img.shields.io/badge/maintainer-jacereda-teal.svg)](https://github.com/jacereda)\n[![Maintainer: jamesdbrock](https://img.shields.io/badge/maintainer-jamesdbrock-teal.svg)](https://github.com/jamesdbrock)\n\n\nBindings and implementation for mutable JavaScript `ArrayBuffer`s.\n\nAn `ArrayBuffer` is a built-in JavaScript object for storage of a flat continuous\nregion of memory.\n\nThe `Typed` module provides a view into an `ArrayBuffer` for array\naccess of aligned local-machine-endian types, for in-process flat memory operations.\n\nThe `DataView` module provides a view into an `ArrayBuffer` for inter-process\nflat memory operations.\n\n* [MDN `ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)\n* [ECMA-262 `ArrayBuffer`](https://tc39.es/ecma262/multipage/structured-data.html#sec-arraybuffer-objects)\n\n\n## Installation\n\nInstall `arraybuffer` with [Spago](https://github.com/purescript/spago):\n\n```sh\nspago install arraybuffer\n```\n\n## Documentation\n\n`arraybuffer` documentation is stored in a few places:\n\n1. Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-arraybuffer).\n2. Written documentation is kept in the [docs directory](./docs).\n3. Usage examples can be found in [the test suite](./test).\n\nIf you get stuck, there are several ways to get help:\n\n- [Open an issue](https://github.com/purescript-contrib/purescript-arraybuffer/issues) if you have encountered a bug or problem.\n- Ask general questions on the [PureScript Discourse](https://discourse.purescript.org) forum or the [PureScript Discord](https://purescript.org/chat) chat.\n\n## Contributing\n\nYou can contribute to `arraybuffer` in several ways:\n\n1. If you encounter a problem or have a question, please [open an issue](https://github.com/purescript-contrib/purescript-arraybuffer/issues). We'll do our best to work with you to resolve or answer it.\n\n2. If you would like to contribute code, tests, or documentation, please [read the contributor guide](./CONTRIBUTING.md). It's a short, helpful introduction to contributing to this library, including development instructions.\n\n3. If you have written a library, tutorial, guide, or other resource based on this package, please share it on the [PureScript Discourse](https://discourse.purescript.org)! Writing libraries and learning resources are a great way to help this library succeed.\n\n## Usage\n\n### Polyfill\n\nThis library relies on runtime implementations of\n[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)\nand\n[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)\n([Structured Data](https://tc39.es/ecma262/multipage/structured-data.html#sec-structured-data)),\nand\n[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray)\n([Indexed Collections](https://tc39.es/ecma262/multipage/indexed-collections.html#sec-indexed-collections)).\n\nIf you want to be sure that those implementations are available in your target\nruntime environment, you might want to consider using a polyfill such as\n[__core-js__ Typed Arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays).\n\n## Related packages\n\nThese are some other packages which provide more `ArrayBuffer` features.\n\n### Reading and Writing\n\n* [__arraybuffer-class__](https://pursuit.purescript.org/packages/purescript-arraybuffer-class)\n* [__dynamic-buffers__](https://pursuit.purescript.org/packages/purescript-dynamic-buffers)\n* [__parsing-dataview__](https://pursuit.purescript.org/packages/purescript-parsing-dataview)\n* [__arraybuffer-builder__](https://pursuit.purescript.org/packages/purescript-arraybuffer-builder)\n\n### Node.js\n\n* [__node-buffer__](https://pursuit.purescript.org/packages/purescript-node-buffer)\n\n### UTF\n\n* [__web-encoding__](https://pursuit.purescript.org/packages/purescript-web-encoding)\n\n### Base64\n\n* [__base64-codec__](https://pursuit.purescript.org/packages/purescript-base64-codec)\n\n## Development\n\nRun the tests with\n\n```sh\nspago -x spago-test.dhall test\n```\n","funding_links":[],"categories":["Binary Serialization"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-contrib%2Fpurescript-arraybuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-contrib%2Fpurescript-arraybuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-contrib%2Fpurescript-arraybuffer/lists"}