Miss any of our Open RFC calls?Watch the recordings here! »

ced

1.0.0 • Public • Published

ced

Detect the character encoding using Google’s compact_enc_det library

npm Travis CI AppVeyor

Installation

$ npm install ced

Usage

const fs = require('fs')
const ced = require('ced')
 
const fileBuffer = fs.readFileSync('foo.txt')
const encoding = ced(fileBuffer)
 
console.log(encoding)
// 'UTF8'

License

ced is licensed under the ISC License, compact_enc_det is licensed under the Apache License 2.0. See LICENSE for the full license text.

Install

npm i ced

DownloadsWeekly Downloads

665

Version

1.0.0

License

(ISC AND Apache-2.0)

Unpacked Size

1.4 MB

Total Files

35

Last publish

Collaborators

  • avatar