From 14e594b21e33ec004a529ec9812352c231129852 Mon Sep 17 00:00:00 2001 From: Hans Kristian Flaatten Date: Sat, 25 Apr 2015 23:43:11 +0200 Subject: [PATCH] Rename `callback` to `cb` in README docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf6d539..7ef3f24 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -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