Skip to content
/ ced Public

Detect the character encoding using Google’s compact_enc_det library

License

Notifications You must be signed in to change notification settings

sonicdoe/ced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8727020 · Dec 21, 2022

History

56 Commits
Dec 21, 2022
Dec 21, 2022
Jul 21, 2018
Jul 21, 2018
Dec 22, 2021
Dec 22, 2021
Dec 26, 2020
Jul 22, 2018
Dec 26, 2020
Jul 22, 2018
Dec 21, 2022
Dec 21, 2022
Sep 21, 2020

Repository files navigation

ced

Detect the character encoding using Google’s compact_enc_det library

npm CI

Installation

$ npm install ced

In order to build ced, you may need to install some build tools first. Check node-gyp’s readme for more information.

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.

About

Detect the character encoding using Google’s compact_enc_det library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published