ruchardet
v0.0.2
Published
Module detects encoding (`cp866`, `cp1251` or `utf8`) of text.
Downloads
5
Maintainers
Readme
ruchardet
Module detects encoding (cp866
, cp1251
or utf8
) of text.
Installation
npm i ruchardet
Usage
const ruchardet = require('ruchardet')
const buffer = Buffer.from('тест')
const encoding = ruchardet.detect(buffer)
console.log(encoding) // prints utf8