{"id":17472601,"url":"https://github.com/shinnn/is-file-utf8","last_synced_at":"2025-04-09T22:53:28.570Z","repository":{"id":57277193,"uuid":"101171719","full_name":"shinnn/is-file-utf8","owner":"shinnn","description":"Check if a file is UTF-8-encoded","archived":false,"fork":false,"pushed_at":"2018-02-05T06:21:32.000Z","size":50,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T00:42:42.318Z","etag":null,"topics":["async-await","check","encoding","javascript","nodejs","promise","unicode","utf-8"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.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":"2017-08-23T11:17:20.000Z","updated_at":"2020-07-22T14:51:23.000Z","dependencies_parsed_at":"2022-09-16T06:53:26.155Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/is-file-utf8","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-file-utf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-file-utf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-file-utf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fis-file-utf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/is-file-utf8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074976,"owners_count":21043490,"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":["async-await","check","encoding","javascript","nodejs","promise","unicode","utf-8"],"created_at":"2024-10-18T17:28:42.021Z","updated_at":"2025-04-09T22:53:28.549Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-file-utf8\n\n[![npm version](https://img.shields.io/npm/v/is-file-utf8.svg)](https://www.npmjs.com/package/is-file-utf8)\n[![Build Status](https://travis-ci.org/shinnn/is-file-utf8.svg?branch=master)](https://travis-ci.org/shinnn/is-file-utf8)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/is-file-utf8.svg)](https://coveralls.io/github/shinnn/is-file-utf8?branch=master)\n\nCheck if a file at the given path is [UTF-8](https://tools.ietf.org/html/rfc3629)-encoded\n\n```javascript\nconst isFileUtf8 = require('is-file-utf8');\n\n(async () =\u003e {\n  await isFileUtf8('package.json'); //=\u003e true\n  await isFileUtf8('screenshot.png'); //=\u003e false\n})();\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).\n\n```\nnpm install is-file-utf8\n```\n\n## API\n\n```javascript\nconst isFileUtf8 = require('is-file-utf8');\n```\n\n### isFileUtf8(*path*)\n\n*path*: `string` [`Buffer`](https://nodejs.org/api/buffer.html#buffer_class_buffer) [`URL`](https://nodejs.org/api/url.html#url_class_url)  \nReturn: `Promise\u003cboolean\u003e`\n\n## License\n\n[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fis-file-utf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fis-file-utf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fis-file-utf8/lists"}