# imgur-anonymous-uploader

> Imgur anonymous image uploder. This Simple and Easy.

Latest version **1.1.9** (published 2026-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install imgur-anonymous-uploader
pnpm add imgur-anonymous-uploader
yarn add imgur-anonymous-uploader
bun add imgur-anonymous-uploader
```

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.9 |
| Published | 2026-04-11 |
| First published | 2020-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | shinshin86 |
| Maintainers | shinshin86 |
| Keywords | imgur, image, upload, anonymous, simple, easy |

## Links

- npm: https://www.npmjs.com/package/imgur-anonymous-uploader
- Repository: https://github.com/shinshin86/imgur-anonymous-uploader
- Homepage: https://github.com/shinshin86/imgur-anonymous-uploader#readme
- Issues: https://github.com/shinshin86/imgur-anonymous-uploader/issues
- npm.io page: https://npm.io/package/imgur-anonymous-uploader

## Dependencies (2)

- [file-type](https://npm.io/package/file-type.md) ^21.3.1
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.1.9 (latest) — 2026-04-11
- 1.1.8 — 2026-03-07
- 1.1.7 — 2025-02-20
- 1.1.6 — 2024-06-18
- 1.1.5 — 2022-07-24
- 1.1.4 — 2022-02-01
- 1.1.3 — 2022-01-24
- 1.1.2 — 2021-06-21
- 1.1.1 — 2021-06-21
- 1.1.0 — 2020-12-06
- 1.0.3 — 2020-09-14
- 1.0.2 — 2020-08-15
- 1.0.1 — 2020-08-02
- 1.0.0 — 2020-07-24

## README

# imgur-anonymous-uploader

[![npm version](https://badge.fury.io/js/imgur-anonymous-uploader.svg)](https://badge.fury.io/js/imgur-anonymous-uploader)

Imgur anonymous image uploder. This is Simple and Easy.

## Install

```bash
npm install imgur-anonymous-uploader
# or
yarn add imgur-anonymous-uploader
```

## Usage

```js
const ImgurAnonymousUploader = require('imgur-anonymous-uploader');

(async () => {
  try {
    const uploader = new ImgurAnonymousUploader('Your imgur client id');
    const uploadResponse = await uploader.upload('upload file path');
    console.log(uploadResponse);
    /*
      {
        success: true,
        status: 200,
        url: 'uploaded imgur url',
        deleteHash: 'delete hash'
      }
    */

    const deleteResponse = await uploader.delete('delete hash is here');
    console.log(deleteResponse);
    // { success: true, status: 200 }
  } catch (error) {
    console.error(error);
  }
})();
```

## Examples

### Test image upload

`./examples/testimg.png` will be uploaded.

If you want to upload your file, please modify the source code.

```bash
IMGUR_CLIENT_ID={your imgur client id} node examples/upload.js
```

### Test image buffer upload

**If you want to upload an image buffer, see the example here.**

`./examples/testimg.base64` will be uploaded.

If you want to upload your file, please modify the source code.

```bash
IMGUR_CLIENT_ID={your imgur client id} node examples/upload-buffer.js
```

### Delete uploaded image

Add `deletehash` to the source code before running it.

```bash
IMGUR_CLIENT_ID={your imgur client id} node examples/delete.js
```

## Test

Use imgur client id.

```bash
IMGUR_CLIENT_ID={Your imgur client id} npm run test
```

## Supported Files

### Supported file extensions

- [x] JPEG
- [x] PNG
- [x] GIF
- [x] APNG
- [x] TIFF
- [x] MP4
- [x] MPEG
- [x] AVI
- [x] WEBM
- [x] quicktime
- [x] x-matroska
- [x] x-flv
- [x] x-msvideo
- [x] x-ms-wmv

### The maximum file size

- The maximum file size for non-animated images is 10MB
- The maximum file size for animated images (like GIFs) and video is 200MB.

### Reference(imgur - help)

[What files can I upload? What is the size limit? - imgur help](https://help.imgur.com/hc/en-us/articles/115000083326-What-files-can-I-upload-What-is-the-size-limit-)

[Imgur API - POST Image Upload](https://apidocs.imgur.com/#c85c9dfc-7487-4de2-9ecd-66f727cf3139)

---
_Source: https://npm.io/package/imgur-anonymous-uploader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
