Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arifulislam5577/uploadimgincloud
Npm Package
https://github.com/arifulislam5577/uploadimgincloud
Last synced: 7 days ago
JSON representation
Npm Package
- Host: GitHub
- URL: https://github.com/arifulislam5577/uploadimgincloud
- Owner: Arifulislam5577
- Created: 2022-10-29T02:28:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-29T03:21:26.000Z (about 2 years ago)
- Last Synced: 2024-10-12T05:06:11.754Z (about 1 month ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UPLOAD TO CLOUD
`uploadimgtocloud` is a Node Js package for upload image in cloudinary cloud.
## Installation
Use the package manager [npm](https://www.npmjs.com/) to install uploadimgtocloud.
```bash
npm install uploadimgtocloud
```## Usage
```
import uploadToCloud from 'uploadimgtocloud';const imgUrl = uploadToCloud({
cloudName : YOUR_cloudName,
apiKey : YOUR_apiKey,
apiSecret : YOUR_apiSecret,
folderName : YOUR_folderName,
height : YOUR_height,
width : YOUR_width,
image : YOUR_image// Image should be base64 bit})
imgUrl will be a string like ,"https://res.cloudinary.com/YOUR_USERNAME/image/upload/v1667012769/cprhtb4bcl7wbrydwyah.png"
```## Author
MD ARIFUL ISLAM