1.6.1 • Published 7 months ago
haq-cloudinary v1.6.1
Cloudinary Image Upload
You can easily upload photos to Cloudinary using this package. I hope this is a very useful package for everyone. So without further delay, install it in your project now.
Installation
To install this package, first you need node js. Then You need to follow
$ npm i haq-cloudinary
Use Case
import CloudinaryImageUpload from "haq-cloudinary";
const fileData = await CloudinaryImageUpload({
file: YourFile,
preset: "cloudinary_preset",
cloudName: "cloudinary_cloudname",
});
// to get photo url
fileData.secure_url;