Package Exports
- ced
- ced/index.js
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 (ced) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ced
Detect the character encoding using Google’s compact_enc_det library
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.