syntax highlighting for readme file

This commit is contained in:
Dmitry Shirokov 2013-11-15 16:08:09 +11:00
parent 7bd721b1d7
commit c429ac9026
1 changed files with 12 additions and 9 deletions

View File

@ -1,5 +1,4 @@
chardet [![Build Status](https://travis-ci.org/runk/node-chardet.png)](https://travis-ci.org/runk/node-chardet)
=====
@ -9,16 +8,20 @@ occurency analysis to determine the most probable encoding.
## Installation
npm install chardet
```
npm i chardet
```
## Usage
```javascript
var chardet = require('chardet');
chardet.detect(new Buffer('hello there!'));
// or
chardet.detectFile('/path/to/file', function(err, encoding) {});
// or
chardet.detectFileSync('/path/to/file');
```
## Supported Encodings: