Package Exports
- isutf8
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (isutf8) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
isutf8
Quick check if a Buffer is UTF-8.
Install
npm install isutf8
Usage
var fs = require('fs');
var isUtf8 = require('isutf8');
console.log(isUtf8(fs.readFileSync('text.txt'))); // boolean