UNPKG

bunnycdn-storage-ts

Version:

![GitHub](https://img.shields.io/github/license/bynarig/bunnycdn-storage-ts?style=flat-square) [![npm](https://img.shields.io/npm/v/bunnycdn-storage-ts?style=flat-square)](https://www.npmjs.com/package/bunnycdn-storage-ts)

11 lines (10 loc) 528 B
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>; }