{"id":13526655,"url":"https://github.com/wayfind/is-utf8","last_synced_at":"2025-12-25T21:21:54.629Z","repository":{"id":4633027,"uuid":"5777545","full_name":"wayfind/is-utf8","owner":"wayfind","description":"Detect if a buffer is utf8 encoded.","archived":false,"fork":false,"pushed_at":"2023-11-07T12:59:28.000Z","size":8,"stargazers_count":106,"open_issues_count":2,"forks_count":24,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-07T21:02:04.420Z","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/wayfind.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}},"created_at":"2012-09-12T09:14:05.000Z","updated_at":"2025-12-03T02:39:06.000Z","dependencies_parsed_at":"2024-02-26T01:49:22.527Z","dependency_job_id":"9780b1b3-2fd2-4a57-aa19-fb0374b3424f","html_url":"https://github.com/wayfind/is-utf8","commit_stats":{"total_commits":8,"total_committers":4,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"cc4c44ce979a7c0ca0a6308f64b017baba3616ed"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wayfind/is-utf8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfind%2Fis-utf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfind%2Fis-utf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfind%2Fis-utf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfind%2Fis-utf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayfind","download_url":"https://codeload.github.com/wayfind/is-utf8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfind%2Fis-utf8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27622885,"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","status":"online","status_checked_at":"2025-12-09T02:00:09.185Z","response_time":54,"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":[],"created_at":"2024-08-01T06:01:32.761Z","updated_at":"2025-12-25T21:21:54.600Z","avatar_url":"https://github.com/wayfind.png","language":"JavaScript","funding_links":[],"categories":["Repository"],"sub_categories":["Check/Detect"],"readme":"#utf8 detector\n\nDetect if a Buffer is utf8 encoded. \nIt need The minimum amount of bytes is 4.\n\n\n```javascript\n    var fs = require('fs');\n    var isUtf8 = require('is-utf8');\n    var ansi = fs.readFileSync('ansi.txt');\n    var utf8 = fs.readFileSync('utf8.txt');\n    \n    console.log('ansi.txt is utf8: '+isUtf8(ansi)); //false\n    console.log('utf8.txt is utf8: '+isUtf8(utf8)); //true\n```\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayfind%2Fis-utf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayfind%2Fis-utf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayfind%2Fis-utf8/lists"}