JSPM

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

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

Build Status Coverage Status NPM Version Dependency Status NPM Downloads

isutf8

Check if a Buffer is utf-8.

Install

npm install isutf8

Usage

var fs = require('fs'),
    isUtf8 = require('isutf8');

console.log(isUtf8(fs.readFileSync('text.txt')));

CLI

npm install isutf8 -g

isutf8 mytext.txt

isutf8 mytext1.txt mytext2.txt mytext3.txt

License

MIT License