{"id":15679989,"url":"https://github.com/linusu/encode-utf8","last_synced_at":"2025-06-13T17:33:44.886Z","repository":{"id":48468217,"uuid":"108989762","full_name":"LinusU/encode-utf8","owner":"LinusU","description":"Turn a string into an ArrayBuffer by using the UTF8 encoding","archived":false,"fork":false,"pushed_at":"2022-06-16T12:53:08.000Z","size":38,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T04:41:01.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-31T12:03:56.000Z","updated_at":"2024-01-08T07:53:18.000Z","dependencies_parsed_at":"2022-08-27T23:51:50.106Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/encode-utf8","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fencode-utf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fencode-utf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fencode-utf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fencode-utf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/encode-utf8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067759,"owners_count":21207395,"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-10-03T16:39:43.233Z","updated_at":"2025-04-15T11:53:18.867Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encode UTF8\n\nTurn a string into an ArrayBuffer by using the UTF8 encoding.\n\n## Installation\n\n```js\nnpm install --save encode-utf8\n```\n\n## Usage\n\n```js\nimport encodeUtf8 from 'encode-utf8'\n\nconsole.log(encodeUtf8('Hello, World!'))\n//=\u003e ArrayBuffer { byteLength: 13 }\n\nconsole.log(encodeUtf8('🐵 🙈 🙉 🙊'))\n//=\u003e ArrayBuffer { byteLength: 19 }\n```\n\n## API\n\n### `encodeUtf8(input)`\n\n- `input` (`string`, required)\n- returns `ArrayBuffer` - an ArrayBuffer with the `input` string represented as UTF8 encoded data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fencode-utf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fencode-utf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fencode-utf8/lists"}