{"id":23038273,"url":"https://github.com/jihyunlab/web-buffer","last_synced_at":"2026-04-12T02:35:00.375Z","repository":{"id":248198974,"uuid":"828044321","full_name":"jihyunlab/web-buffer","owner":"jihyunlab","description":"JihyunLab Web buffer.","archived":false,"fork":false,"pushed_at":"2024-07-17T09:26:31.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T02:08:08.094Z","etag":null,"topics":["base64","base64url","buffer","hex","uint8array","utf8","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jihyunlab.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-07-13T01:05:05.000Z","updated_at":"2024-07-17T09:26:35.000Z","dependencies_parsed_at":"2024-07-13T02:50:31.336Z","dependency_job_id":null,"html_url":"https://github.com/jihyunlab/web-buffer","commit_stats":null,"previous_names":["jihyunlab/web-buffer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jihyunlab/web-buffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jihyunlab","download_url":"https://codeload.github.com/jihyunlab/web-buffer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihyunlab%2Fweb-buffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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","base64url","buffer","hex","uint8array","utf8","web"],"created_at":"2024-12-15T18:17:37.058Z","updated_at":"2026-04-12T02:35:00.356Z","avatar_url":"https://github.com/jihyunlab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jihyunlab/web-buffer\n\n[![Version](https://img.shields.io/npm/v/@jihyunlab/web-buffer.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/web-buffer?activeTab=versions) [![Downloads](https://img.shields.io/npm/dt/@jihyunlab/web-buffer.svg?style=flat-square)](https://www.npmjs.com/package/@jihyunlab/web-buffer) [![Last commit](https://img.shields.io/github/last-commit/jihyunlab/web-buffer.svg?style=flat-square)](https://github.com/jihyunlab/web-buffer/graphs/commit-activity) [![License](https://img.shields.io/github/license/jihyunlab/web-buffer.svg?style=flat-square)](https://github.com/jihyunlab/web-buffer/blob/master/LICENSE) [![Linter](https://img.shields.io/badge/linter-eslint-blue?style=flat-square)](https://eslint.org) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\\\n[![Build](https://github.com/jihyunlab/web-buffer/actions/workflows/build.yml/badge.svg)](https://github.com/jihyunlab/web-buffer/actions/workflows/build.yml) [![Lint](https://github.com/jihyunlab/web-buffer/actions/workflows/lint.yml/badge.svg)](https://github.com/jihyunlab/web-buffer/actions/workflows/lint.yml) [![Prettier](https://github.com/jihyunlab/web-buffer/actions/workflows/prettier.yml/badge.svg)](https://github.com/jihyunlab/web-buffer/actions/workflows/prettier.yml) [![codecov](https://codecov.io/gh/jihyunlab/web-buffer/graph/badge.svg?token=QJX5G75FXA)](https://codecov.io/gh/jihyunlab/web-buffer)\n\n@jihyunlab/web-buffer provides data conversion capabilities in web application environments where Node.js's Buffer class cannot be used.\n\n## Installation\n\n```bash\nnpm i @jihyunlab/web-buffer\n```\n\n## Usage\n\nYou can create a buffer and convert data based on encoding type.\\\nEncoding types are provided for Hex, Base64, Base64URL, UTF-8, and Uint8Array data.\n\n```\nimport { WebBuffer } from '@jihyunlab/web-buffer';\n\nconst buffer = WebBuffer.from(\n  'jihyunlab',\n  'utf8' /* hex, base64, base64url, utf8, uint8array */\n);\n\nconst hex = buffer.toString('hex');\nconsole.log(hex); // 6a696879756e6c6162\n\nconst base64 = buffer.toString('base64');\nconsole.log(base64); // amloeXVubGFi\n\nconst base64Url = buffer.toString('base64url');\nconsole.log(base64Url); // amloeXVubGFi\n\nconst utf8 = buffer.toString('utf8');\nconsole.log(utf8); // jihyunlab\n\nconst uint8Array = buffer.toUint8Array();\nconsole.log(uint8Array); // Uint8Array(9) [106, 105, 104, 121, 117, 110, 108, 97, 98]\n```\n\nUint8Array data can create buffer without defining an encoding type.\n\n```\nconst buffer = WebBuffer.from(\n  new Uint8Array([106, 105, 104, 121, 117, 110, 108, 97, 98])\n);\n```\n\nUTF-8 data can be converted without defining the encoding type.\n\n```\nconst utf8 = buffer.toString();\n```\n\n## Credits\n\nAuthored and maintained by JihyunLab \u003c\u003cinfo@jihyunlab.com\u003e\u003e\n\n## License\n\nOpen source [licensed as MIT](https://github.com/jihyunlab/web-buffer/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihyunlab%2Fweb-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjihyunlab%2Fweb-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihyunlab%2Fweb-buffer/lists"}