{"id":21482383,"url":"https://github.com/topgunbuild/textencoder","last_synced_at":"2026-05-18T18:37:50.055Z","repository":{"id":174108456,"uuid":"651387479","full_name":"TopGunBuild/textencoder","owner":"TopGunBuild","description":"An isomorphic TextEncoder for Javascript in Node and the browser","archived":false,"fork":false,"pushed_at":"2023-11-25T13:09:51.000Z","size":190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T04:49:05.210Z","etag":null,"topics":["browser","decode","encode","isomorphic","nodejs","textencoder"],"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/TopGunBuild.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-06-09T06:09:43.000Z","updated_at":"2023-08-23T04:37:24.000Z","dependencies_parsed_at":"2024-11-23T12:42:57.404Z","dependency_job_id":null,"html_url":"https://github.com/TopGunBuild/textencoder","commit_stats":null,"previous_names":["topgunbuild/topgun-textencoder","topgunbuild/textencoder"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopGunBuild%2Ftextencoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopGunBuild%2Ftextencoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopGunBuild%2Ftextencoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopGunBuild%2Ftextencoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TopGunBuild","download_url":"https://codeload.github.com/TopGunBuild/textencoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006290,"owners_count":20382443,"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":["browser","decode","encode","isomorphic","nodejs","textencoder"],"created_at":"2024-11-23T12:32:53.350Z","updated_at":"2026-05-18T18:37:50.009Z","avatar_url":"https://github.com/TopGunBuild.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"border-bottom: none;\"\u003e✨ @topgunbuild/textencoder\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eAn isomorphic TextEncoder for Javascript in Node and the browser, used in \u003ca href=\"https://github.com/TopGunBuild/topgun\"\u003eTopGun\u003c/a\u003e\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://npm.im/@topgunbuild/textencoder\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://badgen.net/npm/v/@topgunbuild/textencoder\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=@topgunbuild/textencoder\"\u003e\n    \u003cimg alt=\"bundlephobia\" src=\"https://img.shields.io/bundlephobia/minzip/@topgunbuild/textencoder.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n      \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## What?\n\nEncode/decode Uint8Arrays to strings.\n\nThis is just a thin wrapper that provides an isomorphic API.\n- To perform UTF8 conversion in the browser it uses the native TextEncoder.\n- In Node it uses Buffer and Uint8Array.\n\n## Install\n\n```bash\nnpm install @topgunbuild/textencoder\n```\n\n## Usage\n\n```javascript\nconst textencoder = require('@topgunbuild/textencoder')\n// or\nimport textencoder from '@topgunbuild/textencoder';\n\ntextencoder.encode('Hello') // Uint8Array [ 72, 101, 108, 108, 111 ]\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopgunbuild%2Ftextencoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopgunbuild%2Ftextencoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopgunbuild%2Ftextencoder/lists"}