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
'use strict';
const isUtf8 = require('isutf8');
const buf = Buffer.from([0xd0, 0x90]);
console.log(isUtf8(buf)); // => true