{"id":16515211,"url":"https://github.com/pine/arraybuffer-loader","last_synced_at":"2025-03-16T19:30:43.407Z","repository":{"id":10053779,"uuid":"64233814","full_name":"pine/arraybuffer-loader","owner":"pine","description":":dvd: ArrayBuffer loader for webpack","archived":false,"fork":false,"pushed_at":"2023-02-16T19:53:13.000Z","size":85,"stargazers_count":45,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-29T16:56:55.438Z","etag":null,"topics":["javascript","nodejs","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/arraybuffer-loader","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/pine.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":"2016-07-26T15:43:53.000Z","updated_at":"2024-06-18T14:06:03.433Z","dependencies_parsed_at":"2024-06-18T14:06:01.462Z","dependency_job_id":"e14277c7-eeab-4f02-a6a9-cb0d5550eb67","html_url":"https://github.com/pine/arraybuffer-loader","commit_stats":{"total_commits":127,"total_committers":5,"mean_commits":25.4,"dds":"0.18110236220472442","last_synced_commit":"570d98fa4fb17d0ebff3a51f6653ff810e036de8"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Farraybuffer-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Farraybuffer-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Farraybuffer-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Farraybuffer-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pine","download_url":"https://codeload.github.com/pine/arraybuffer-loader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221667140,"owners_count":16860559,"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":["javascript","nodejs","webpack"],"created_at":"2024-10-11T16:16:07.316Z","updated_at":"2024-10-27T11:08:41.705Z","avatar_url":"https://github.com/pine.png","language":"JavaScript","readme":"# arraybuffer-loader \u0026nbsp;\u0026nbsp;[![npm](https://img.shields.io/npm/v/arraybuffer-loader.svg?maxAge=2592000)](https://www.npmjs.org/package/arraybuffer-loader) [![build](https://github.com/pine/arraybuffer-loader/actions/workflows/build.yml/badge.svg)](https://github.com/pine/arraybuffer-loader/actions/workflows/build.yml) [![License](https://img.shields.io/github/license/emoji-gen/clone-into.svg)](LICENSE)\n\n:dvd: ArrayBuffer loader for webpack \u003cbr\u003e\u003cbr\u003e\n\n## Supported Platforms\n\n- Modern Browsers (IE \u003e= 10)\n- Node.js\n\n## Getting Started\n\n\n```\n$ yarn add arraybuffer-loader\n```\n\nor\n\n```\n$ npm install arraybuffer-loader --save-dev\n```\n\n## Usage\nIf you read only the specific extensions (e.g. wasm), please add loader in `webpack.config.js`.\n\n```js\nmodule: {\n  rules: [\n    {\n      test: /\\.png$/,\n      loaders: ['arraybuffer-loader'],\n    },\n  ],\n},\n```\n\nOr if reading an arbitrary extension, use `require`.\n\n```js\nconst buffer = require('arraybuffer!./data.dat')\nconst array = new Uint8Array(buffer)\n```\n\nSee also offical document [Loaders](https://webpack.js.org/concepts/loaders/).\n\n### For `.wasm` file\nWebpack 4 or later has embedded WASM parser. So, please set `type: 'javascript/auto'` when use `arraybuffer-loader`.\n\n```js\nmodule: {\n  rules: [\n    {\n      test: /\\.wasm$/,\n      type: 'javascript/auto',\n      loaders: ['arraybuffer-loader'],\n    },\n  ],\n},\n```\n\n## License\nMIT \u0026copy; [Pine Mizune](https://profile.pine.moe)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Farraybuffer-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpine%2Farraybuffer-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Farraybuffer-loader/lists"}