1.7.5 • Published 7 years ago
uchardet v1.7.5
node-uchardet
Native uchardet Binding for Node
For more information on the native binding: https://www.freedesktop.org/wiki/Software/uchardet/
Install
via npm
npm install -S node-uchardet@icemanbeta/uchardetvia yarn
yarn add node-uchardet@icemanbeta/uchardetUsage
Getting Started
CommonJS
const UChardet = require('uchardet');
const uchardet = new UChardet();
const charset = uchardet.detect('/path/to/file');ES6
import * as UChardet from 'uchardet';
const uchardet = new UChardet();
const charset = uchardet.detect('/path/to/file');API
detect(file)filestring: Relative or absolute path to the file (Note: Relative path is resolved toprocess.cwd(), resolve prior if this doesn't work for you)
Example:
const source = './test/resources/sample.ssa';
const charset = uchardet.detect(source);
console.log(charset);
// => TIS-620version()Example:
console.log(uchardet.version());
// => 0.0.61.7.5
7 years ago
1.7.4
7 years ago
1.7.3
7 years ago
1.7.2
7 years ago
1.7.1
7 years ago
1.7.0
7 years ago
1.6.7
8 years ago
1.6.6
8 years ago
1.6.5
8 years ago
1.6.4
8 years ago
1.6.3
8 years ago
1.6.2
8 years ago
1.6.1
8 years ago
1.6.0
8 years ago
1.5.1
8 years ago
1.5.0
8 years ago
0.2.2
8 years ago
1.0.4-0
8 years ago
1.0.4
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.2.0
8 years ago