bunnycdn-storage-ts
Version:
 [](https://www.npmjs.com/package/bunnycdn-storage-ts)
11 lines (10 loc) • 528 B
TypeScript
import { AxiosPromise, AxiosResponse, ResponseType } from 'axios';
export default class BunnyCDNStorage {
private readonly client;
constructor(apiKey: string, storageZoneName: string, region?: string);
list(path?: string): AxiosPromise<any>;
delete(path?: string): AxiosPromise<any>;
upload(file: Buffer, remotePath?: string): Promise<AxiosResponse>;
upload(filePath: string, remotePath?: string): Promise<AxiosResponse>;
download(filePath: string, responseType?: ResponseType): AxiosPromise<any>;
}