# @types/uploadcare

> TypeScript definitions for uploadcare

Latest version **0.4.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/uploadcare
pnpm add @types/uploadcare
yarn add @types/uploadcare
bun add @types/uploadcare
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.4 |
| Published | 2023-11-07 |
| First published | 2018-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/uploadcare
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uploadcare
- npm.io page: https://npm.io/package/@types/uploadcare

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.4.4 (latest) — 2023-11-07
- 0.4.2 (ts4.3) — 2023-08-30
- 0.4.1 (ts3.6) — 2021-07-02
- 0.4.0 (ts2.0) — 2018-09-08
- 0.4.3 — 2023-10-18

## README

# Installation
> `npm install --save @types/uploadcare`

# Summary
This package contains type definitions for uploadcare (https://github.com/rexmorgan/uploadcare-node).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uploadcare.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uploadcare/index.d.ts)
````ts
/// <reference types="node" />

import { ReadStream } from "fs";

declare namespace Uploadcare {
    interface File {
        original_file_url: string;
        image_info: ImageInfo;
        mime_type: string;
        is_ready: boolean;
        url: string;
        uuid: string;
        original_filename: string;
        datetime_uploaded: string;
        size: number;
        is_image: boolean;
        datetime_stored: string;
        datetime_removed: string | null;
    }

    interface ImageInfo {
        orientation: null;
        sequence: boolean;
        format: string;
        height: number;
        width: number;
        geo_location: null;
        datetime_original: null;
        dpi: number[];
    }

    interface Instance {
        file: {
            upload: (
                readStream: ReadStream,
                options: { store?: boolean | undefined },
                callback: (err: Error, res: { file: string }) => void,
            ) => void;
            fromUrl: (
                url: string,
                options: { store?: boolean | undefined },
                callback: (err: Error, res: File) => void,
            ) => void;
        };
        files: {
            store: (
                uuid: string,
                callback: (err: Error, res: File) => void,
            ) => void;
            remove: (
                uuid: string,
                callback: (err: Error, res: File) => void,
            ) => void;
        };
    }
}

declare function Uploadcare(
    publicKey: string,
    privateKey: string,
): Uploadcare.Instance;

export = Uploadcare;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Jinesh Shah](https://github.com/jineshshah36).

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