# cloudinary-promised

> Wrapper for Cloudinary functions.

Latest version **1.0.10** (published 2018-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install cloudinary-promised
pnpm add cloudinary-promised
yarn add cloudinary-promised
bun add cloudinary-promised
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2018-08-27 |
| First published | 2018-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dylan Vann |
| Maintainers | dylanvann |
| Keywords | cloudinary, promised |

## Links

- npm: https://www.npmjs.com/package/cloudinary-promised
- Repository: https://github.com/DylanVann/cloudinary-promised
- Homepage: https://github.com/DylanVann/cloudinary-promised#readme
- Issues: https://github.com/DylanVann/cloudinary-promised/issues
- npm.io page: https://npm.io/package/cloudinary-promised

## Dependencies (2)

- [cloudinary](https://npm.io/package/cloudinary.md) ^1.11.0
- [url-exists-promise](https://npm.io/package/url-exists-promise.md) ^1.0.1

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.10 (latest) — 2018-08-27
- 1.0.9 — 2018-08-03
- 1.0.8 — 2018-08-03
- 1.0.7 — 2018-08-02
- 1.0.6 — 2018-08-02
- 1.0.5 — 2018-08-01
- 1.0.4 — 2018-08-01
- 1.0.3 — 2018-07-26
- 1.0.2 — 2018-07-26
- 1.0.1 — 2018-07-18
- 1.0.0 — 2018-07-18

## README

# cloudinary-promised

This repo contains a promisified version of some functions of the Cloudinary API.
It also does some detection of whether local paths are images or videos to make
the API more intuitive.

```ts
interface CloudinaryConfig {
    cloud_name: string;
    api_key: string;
    api_secret: string;
}
export declare const isVideo: (localAbsolutePath: string) => boolean;
export declare const uploadFile: (id: string, localAbsolutePath: string) => Promise<any>;
export declare const getMetadata: (id: string, localAbsolutePath: string) => Promise<any>;
export declare const imageExists: (id: string, config: CloudinaryConfig) => Promise<boolean>;
export declare const videoExists: (id: string, config: CloudinaryConfig) => Promise<boolean>;
export declare const fileExists: (id: string, localAbsolutePath: string, config: CloudinaryConfig) => Promise<boolean>;
export declare const uploadOrGetMetadata: (id: string, localAbsolutePath: string, config: CloudinaryConfig) => Promise<any>;
```

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