Skip to content

Commit

Permalink
Rename callback to cb in README docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Kristian Flaatten committed Apr 25, 2015
1 parent 0013adb commit 14e594b
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 @@ npm install im-resize --save
var resize = require('im-resize');
```

### resize(**object** `image`, **object[]** `versions`, **function** `callback`)
### resize(**object** `image`, **object[]** `versions`, **function** `cb`)

Resize a given source `image` into several `versions`.

Expand All @@ -38,7 +38,7 @@ Resize a given source `image` into several `versions`.
* **integer** `maxWidth` - max width for resized image
* **integer** `maxHeight` - max height for resized image
* **string** `ratio` - force aspectratio on resized image (ex. "4:3")
* **function** `callback` - callback function (**Error** `error`, **object[]** `versions`)
* **function** `cb` - callback function (**Error** `error`, **object[]** `versions`)
* **Error** `error` - error output if command failed
* **object[]** `versions` - resized image versions
* **string** `path` path to the resized image
Expand Down

0 comments on commit 14e594b

Please sign in to comment.