{"id":22222035,"url":"https://github.com/fabiospampinato/utf16le-encoding","last_synced_at":"2025-07-27T04:37:04.054Z","repository":{"id":57689955,"uuid":"473771497","full_name":"fabiospampinato/utf16le-encoding","owner":"fabiospampinato","description":"UTF16-le encoding, a.k.a. UCS2 encoding, an encoding you probably should never use.","archived":false,"fork":false,"pushed_at":"2025-01-15T02:35:21.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T04:12:10.385Z","etag":null,"topics":["encoding","ucs-2","ucs2","utf16","utf16le"],"latest_commit_sha":null,"homepage":"","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/fabiospampinato.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},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2022-03-24T20:58:56.000Z","updated_at":"2025-01-15T02:35:22.000Z","dependencies_parsed_at":"2025-01-15T03:34:15.484Z","dependency_job_id":"0f90637e-5b37-4bd2-b4f2-ac5f42e9db81","html_url":"https://github.com/fabiospampinato/utf16le-encoding","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"db7ceb1fa6b2dba8eb3d68b7991a65f85233d3b1"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Futf16le-encoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Futf16le-encoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Futf16le-encoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Futf16le-encoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/utf16le-encoding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236309832,"owners_count":19128390,"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":["encoding","ucs-2","ucs2","utf16","utf16le"],"created_at":"2024-12-02T23:16:37.122Z","updated_at":"2025-01-30T07:15:28.160Z","avatar_url":"https://github.com/fabiospampinato.png","language":"JavaScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"# UTF16le\n\nUTF16-le encoding, a.k.a. UCS2 encoding, an encoding you probably should never use.\n\n## Install\n\n```sh\nnpm install utf16le-encoding\n```\n\n## Usage\n\n```ts\nimport UTF16le from 'utf16le-encoding';\n\n// Uint8Array encoding \u0026 decoding\n\n{\n  const raw = 'Hello 😃';\n  const uint8 = new TextEncoder ().encode ( raw );\n  console.log ( uint8 ); // =\u003e Uint8Array(10) [ 72, 101, 108, 108, 111,  32, 240, 159, 152, 131 ]\n\n  const encoded = UTF16le.encode ( uint8 );\n  console.log ( encoded ); // =\u003e '效汬⁯鿰莘'\n\n  const decoded = UTF16le.decode ( encoded );\n  console.log ( decoded ); // =\u003e // =\u003e Uint8Array(10) [ 72, 101, 108, 108, 111,  32, 240, 159, 152, 131 ]\n}\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Futf16le-encoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Futf16le-encoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Futf16le-encoding/lists"}