Update readme
This commit is contained in:
parent
802964244f
commit
17f788b73f
|
@ -23,6 +23,15 @@ chardet.detectFile('/path/to/file', function(err, encoding) {});
|
||||||
chardet.detectFileSync('/path/to/file');
|
chardet.detectFileSync('/path/to/file');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Working with large data sets
|
||||||
|
|
||||||
|
Sometimes, when data set is huge and you want to optimize performace (in tradeoff of less accuracy),
|
||||||
|
you can sample only first N bytes of the buffer:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
chardet.detectFile('/path/to/file', { sampleSize: 32 }, function(err, encoding) {});
|
||||||
|
```
|
||||||
|
|
||||||
## Supported Encodings:
|
## Supported Encodings:
|
||||||
|
|
||||||
* UTF-8
|
* UTF-8
|
||||||
|
|
Loading…
Reference in New Issue