`darksadasyt-imgbb-scraper` is a lightweight Node.js module to upload images to [ImgBB](https://imgbb.com/) and retrieve direct image URLs along with full metadata.
npm install darksadasyt-imgbb-scraperdarksadasyt-imgbb-scraper is a lightweight Node.js module to upload images to ImgBB and retrieve direct image URLs along with full metadata.
jpg, png, gif, etc.)
delete_url, size, views, and more
sh
yarn add darksadasyt-imgbb-scraper
`
or
`sh
npm i darksadasyt-imgbb-scraper
`
🍟 Usage
`ts
const { image2url }= require('darksadasyt-imgbb-scraper')
(async () => {
try {
const result = await image2url("./myimage.jpg");
console.log(result);
console.log("Image URL:", result.result.url);
} catch (err) {
console.error("Upload failed:", err.message);
}
})();
`
💃 Result
`ts
{
status: true,
creator: 'Themi Sadas',
result: {
name: 'temp-1755868189687',
extension: 'jpg',
width: 1472,
height: 832,
size: 449056,
time: 1755868190,
expiration: 0,
likes: 0,
original_filename: 'temp_1755868189687.jpg',
is_animated: 0,
nsfw: 0,
id_encoded: 'PzbMnHWz',
size_formatted: '449.1 KB',
filename: 'temp-1755868189687.jpg',
url: 'https://i.ibb.co/YTKXMsdT/temp-1755868189687.jpg',
url_viewer: 'https://ibb.co/PzbMnHWz',
image: { ... },
thumb: { ... },
medium: { ... },
display_url: 'https://i.ibb.co/jZxz2XwZ/temp-1755868189687.jpg',
delete_url: 'https://ibb.co/PzbMnHWz/7ec87f032172f9f21f915377bbffaa1e'
}
}
``