{"id":19745407,"url":"https://github.com/btd/node-charset-detector","last_synced_at":"2025-08-09T05:30:14.184Z","repository":{"id":22243934,"uuid":"25577344","full_name":"btd/node-charset-detector","owner":"btd","description":"ICU based port of charset detection to javascript","archived":false,"fork":false,"pushed_at":"2014-10-22T15:03:38.000Z","size":272,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T01:18:32.426Z","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/btd.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}},"created_at":"2014-10-22T11:16:14.000Z","updated_at":"2024-06-26T06:50:28.000Z","dependencies_parsed_at":"2022-08-20T22:20:32.176Z","dependency_job_id":null,"html_url":"https://github.com/btd/node-charset-detector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fnode-charset-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fnode-charset-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fnode-charset-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fnode-charset-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btd","download_url":"https://codeload.github.com/btd/node-charset-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224202863,"owners_count":17272807,"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-11-12T02:08:13.355Z","updated_at":"2024-11-12T02:08:14.071Z","avatar_url":"https://github.com/btd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"node-charset-detector\n=====================\n\nICU based port of charset detection to javascript\n\nInstall\n=======\n\n```\nnpm install --save charset-detector\n```\n\nUse\n===\n\n```javascript\nvar detect = require('charset-detector');\n\n/*\n  function accept node Buffer, but will work with anything that follow such rules:\n  allow indexing by []\n  has .length\n  each numbered property is byte 0-255\n*/\nvar matches = detect(buffer);\n\n```\n\nFunction will return array of matches sorted by most confident first.\n\nDetectable encodings from ICU:\n\n* UTF8 (with and without BOM)\n* UTF16-LE, UTF16-BE, UTF32-LE, UTF32-BE\n* Big5, EUC-JP, GB18030, Shift_JIS\n* ISO-2022-JP, ISO-2022-KR, ISO-2022-CN\n* ISO-8859-1, ISO-8859-2, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-8-I, ISO-8859-9, windows-1250, windows-1251, windows-1252, windows-1253, windows-1254, windows-1255, windows-1256, koir8-r, IBM420\\_ltr(rtl), IBM424\\_ltr(rtl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fnode-charset-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtd%2Fnode-charset-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fnode-charset-detector/lists"}