1.7.5 • Published 7 years ago

uchardet v1.7.5

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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/uchardet

via yarn

yarn add node-uchardet@icemanbeta/uchardet

Usage

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)
  • file string: Relative or absolute path to the file (Note: Relative path is resolved to process.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-620
version()

Example:

console.log(uchardet.version());
// => 0.0.6
1.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

7 years ago

1.6.6

7 years ago

1.6.5

7 years ago

1.6.4

7 years ago

1.6.3

7 years ago

1.6.2

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

0.2.2

7 years ago

1.0.4-0

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.0

7 years ago