diff --git a/README.md b/README.md index 23e89f6..3967f99 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,15 @@ Require the library in your .js file `var base64 = require('node-base64-image');` #### Download and encode an image -``` -var options = {string: true} - -base64.base64encode('www.someurl.com/image.jpg', function (err, image) { - if (err) { console.log(err); } - console.log(image); -}); +``` +var options = {string: true}; + +base64.base64encoder('www.someurl.com/image.jpg', options, function (err, image) { + if (err) { + console.log(err); + } + console.log(image); +}); ``` #### Encode a local image