1.0.3 • Published 5 months ago

imgur-link v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Here's your professional README.md file with all the details you requested:


lmgur_link - Upload Images to Imgur Effortlessly

šŸš€ lmgur_link is a simple and efficient Node.js package for uploading images to Imgur. It provides an Express API with an elegant HTML web UI for easy image uploads and sharing.

✨ Features

āœ” Upload any image format (JPG, PNG, GIF, etc.)
āœ” Fast & Reliable – Uses Imgur's API for instant uploads
āœ” Copy Image URL directly from UI
āœ” Auto-delete local files after upload
āœ” Simple API endpoint for automation


šŸ“¦ Installation & Setup

1ļøāƒ£ Install the Package in Your Project

npm i imgur-link

2ļøāƒ£ Import and Use in Your Node.js Project

const { uploadToImgur } = require("imgur-link");

async function testUpload() {
    try {
        const imgUrl = await uploadToImgur("image.jpg");
        console.log("Imgur URL:", imgUrl);
    } catch (error) {
        console.error("Error uploading image:", error);
    }
}

testUpload();

šŸŽÆ Using the imgur-link NPM Package

Installation in Another Project

npm install imgur-link

Usage in Your Project

const { uploadToImgur } = require("imgur-link");

async function testUpload() {
    try {
        const imgUrl = await uploadToImgur("image.jpg");
        console.log("Imgur URL:", imgUrl);
    } catch (error) {
        console.error("Error uploading image:", error);
    }
}

testUpload();

šŸš€ Running the Express Server (For Web UI & API)

1ļøāƒ£ Clone the Repository

git clone https://github.com/rrashedul59/imgur_link.git
cd imgur2

2ļøāƒ£ Install Dependencies

npm install

3ļøāƒ£ Start the Server

npm start

4ļøāƒ£ Open in Browser

Visit: http://localhost:3000

āœ” Upload an image
āœ” Get the Imgur link
āœ” Copy the link with one click


šŸ“Œ API Usage

āž¤ Upload Image via API

Endpoint:

POST /upload

Body (Form-Data):

  • image (File) - The image file to upload

Response:

{
  "success": true,
  "url": "https://i.imgur.com/example.jpg"
}

šŸ’” Project Structure

imgur_link/
│── imgur2.js       # Handles image upload to Imgur
│── index.js        # Main export file for the package
│── package.json    # NPM package config
│── README.md       # Documentation


---

## šŸ“œ **License**  
This project is **MIT Licensed** – Free to use, modify, and distribute.

---

## šŸ“¢ **Author & Contact**  
šŸ’» **Made by:** Sheikh Tamim  
šŸ“© **Messenger:** [m.me/sheikh.tamim.lover](https://m.me/sheikh.tamim.lover)  
šŸ“ø **Instagram:** [@sheikh.tamim_lover](https://www.instagram.com/sheikh.tamim_lover)  

---

Let me know if you want any modifications! šŸš€šŸ”„
1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago