diff --git a/README.md b/README.md index fed38c6..9104ca4 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ app.get('/', function (req, res) { // or both of them at the same time topText: 'Meme', bottomText: 'Generator', + // for local image you can use path 'img/folder/image.jpg' url: 'https://i.imgur.com/7FHoSIG.png' }) .then(function(data) { @@ -51,4 +52,3 @@ app.get('/', function (req, res) { app.listen(PORT, () => console.log(`Listening on ${ PORT }`)); ``` -The `url` field can be a web link (e.g. `url: 'https://i.imgur.com/7FHoSIG.png'`) or a local image file (e.g. `url: 'img/folder/image.jpg'`) diff --git a/package.json b/package.json index c2d436e..1c87b70 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "request": "^2.88.0" }, "name": "nodejs-meme-generator", - "version": "1.0.4", + "version": "1.0.5", "description": "Nodejs promise-based meme generator, it takes an image as url and top/bottom text to generate meme as Buffer", "main": "index.js", "devDependencies": {},