1.0.1 • Published 6 years ago

is-file-utf8 v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

is-file-utf8

npm version Build Status Coverage Status

Check if a file at the given path is UTF-8-encoded

const isFileUtf8 = require('is-file-utf8');

(async () => {
  await isFileUtf8('package.json'); //=> true
  await isFileUtf8('screenshot.png'); //=> false
})();

Installation

Use npm.

npm install is-file-utf8

API

const isFileUtf8 = require('is-file-utf8');

isFileUtf8(path)

path: string Buffer URL
Return: Promise<boolean>

License

ISC License © 2018 Shinnosuke Watanabe

1.0.1

6 years ago

1.0.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago