An npm package that allows shorter code with the help of cloudinary API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules/cloudinary
tests
.gitattributes
.gitignore
README.md
cloudinarize.js
package.json

README.md

In your console/terminal

npm install cloudinarize

In app.js/server.js/any file in nodejs application,

var cloudinarize = require ('cloudinarize'); var imageArray = cloudinarize.getAll(cloud_name,api_key,api_secret);

If parameters are correct, You will receive

-An array of url for all images

else

-An empty array

  • "getAll" method currently returns a maximum of 10 images. To edit, set

max_results parameter (Default=10. Maximum=500)

For a better understanding on how to build npm packages, visit https://royleekiat.wordpress.com/2015/07/29/how-to-create-and-publish-an-npm-module-for-nodejs-applications/