JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 99392
  • Score
    100M100P100Q157337F
  • License MIT

Check if a Buffer is utf-8

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

NPM Version NPM Downloads Dependency Status Build Status Coverage Status

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

License

MIT License