Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 29, 2014
1 parent 96cfb54 commit de3361b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $ component install sindresorhus/file-type
```js
var readChunk = require('read-chunk'); // npm install read-chunk
var fileType = require('file-type');
var buffer = readChunk.sync('unicorn.png', 0, 58);
var buffer = readChunk.sync('unicorn.png', 0, 262);

fileType(buffer);
//=> png
Expand Down Expand Up @@ -57,7 +57,7 @@ Returns one of the [supported file types](#supported-file-types) or `false`.

Type: `buffer` *(Node.js)*, `uint8array`

It only needs the first 58 bytes.
It only needs the first 262 bytes.


## CLI
Expand Down

0 comments on commit de3361b

Please sign in to comment.