is-file-utf8
Check if a file at the given path is UTF-8-encoded
const isFileUtf8 = ; async { await ; //=> true await ; //=> false};
Installation
npm install is-file-utf8
API
const isFileUtf8 = ;
isFileUtf8(path)
path: string
Buffer
URL
Return: Promise<boolean>
License
ISC License © 2018 Shinnosuke Watanabe