1.0.10 • Published 6 years ago

cloudinary-promised v1.0.10

Weekly downloads
20
License
MIT
Repository
github
Last release
6 years ago

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.

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>;
1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago