{"id":20513850,"url":"https://github.com/webreflection/buffer-to-base64","last_synced_at":"2026-03-16T07:03:45.949Z","repository":{"id":243639445,"uuid":"812983585","full_name":"WebReflection/buffer-to-base64","owner":"WebReflection","description":"A base64 encoder/decoder with gzip or deflate abilities.","archived":false,"fork":false,"pushed_at":"2024-10-30T13:11:29.000Z","size":67,"stargazers_count":37,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-11T04:00:58.492Z","etag":null,"topics":["base64","wasm","web"],"latest_commit_sha":null,"homepage":"https://webreflection.medium.com/how-to-embed-your-wasm-blob-c29692119039","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/WebReflection.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-06-10T09:30:10.000Z","updated_at":"2025-07-25T04:15:48.000Z","dependencies_parsed_at":"2024-08-02T11:59:45.886Z","dependency_job_id":null,"html_url":"https://github.com/WebReflection/buffer-to-base64","commit_stats":null,"previous_names":["webreflection/buffer-to-base64"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/WebReflection/buffer-to-base64","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fbuffer-to-base64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fbuffer-to-base64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fbuffer-to-base64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fbuffer-to-base64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebReflection","download_url":"https://codeload.github.com/WebReflection/buffer-to-base64/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fbuffer-to-base64/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274893250,"owners_count":25369278,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":["base64","wasm","web"],"created_at":"2024-11-15T21:13:31.806Z","updated_at":"2026-03-16T07:03:40.903Z","avatar_url":"https://github.com/WebReflection.png","language":"JavaScript","readme":"# buffer-to-base64\n\n[![build status](https://github.com/WebReflection/buffer-to-base64/actions/workflows/node.js.yml/badge.svg)](https://github.com/WebReflection/buffer-to-base64/actions) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/buffer-to-base64/badge.svg?branch=main)](https://coveralls.io/github/WebReflection/buffer-to-base64?branch=main)\n\n\u003csup\u003e**Social Media Photo by [Belinda Fewings](https://unsplash.com/@bel2000a) on [Unsplash](https://unsplash.com/)**\u003c/sup\u003e\n\n\nA base64 encoder/decoder with `gzip` or `deflate` abilities.\n\n```js\nimport { encode, decode, stream } from 'buffer-to-base64';\n\n// return a base64 string after compression\nconst packed = await encode(buffer);\n\n// return an ArrayBuffer after decompression\nconst original = await decode(packed);\n\n// initialize a WebAssembly module streaming\nconst response = stream(packed, { type: 'application/wasm' });\n\n// eventually returns the ArrayBuffer too (fast decoding)\nconst arrayBuffer = await (await response).arrayBuffer();\n// `arrayBuffer` is the same as `original`\n```\n\nThis module goal is to simplify the embedding of *WASM* or other blobs within code as `base64` that can return the original array without bloating space on the file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Fbuffer-to-base64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebreflection%2Fbuffer-to-base64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Fbuffer-to-base64/lists"}