Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

is-utf8

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

is-utf8

Detect if a buffer is utf8 encoded.

    0.2.1latest

Version published
Maintainers
1
Weekly downloads
8,967,287
decreased by-9.19%

Weekly downloads

Readme

Source

#utf8 detector

Detect if a Buffer is utf8 encoded. It need The minimum amount of bytes is 4.

var fs = require('fs'); var isUtf8 = require('is-utf8'); var ansi = fs.readFileSync('ansi.txt'); var utf8 = fs.readFileSync('utf8.txt'); console.log('ansi.txt is utf8: '+isUtf8(ansi)); //false console.log('utf8.txt is utf8: '+isUtf8(utf8)); //true

Keywords

FAQs

What is is-utf8?

Detect if a buffer is utf8 encoded.

Is is-utf8 popular?

The npm package is-utf8 receives a total of 7,246,697 weekly downloads. As such, is-utf8 popularity was classified as popular.

Is is-utf8 well maintained?

We found that is-utf8 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 19 Dec 2015

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc