ruchardet

0.0.2 • Public • Published

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

/ruchardet/

    Package Sidebar

    Install

    npm i ruchardet

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    5.74 kB

    Total Files

    6

    Last publish

    Collaborators

    • mugiseyebrows