UNPKG

image-optimizer-s3-fastcodeco

Version:

IMAGE OPTIMIZER FASTCODE CO --

37 lines (36 loc) 845 B
/// <reference types="node" /> import { UploadS3_IMGUP } from "../types"; /** * Handle upload to S3 * */ export declare class uploadS3 { private region; private accessKey; private secretKey; private bucket_name; private aws_url; /** * * @param region * @param accessKey * @param secretKey * @param bucket_name * @param aws_url */ constructor(region: string, accessKey: string, secretKey: string, bucket_name: string, aws_url?: string); /** * * @returns */ private s3Client; /** * @function * @name uploadFileAWSService * @description Service to upload a file to AWS. * @param { Buffer } buffer * @param { string } key * @returns { Promise } */ upload(buffer: Buffer, filename: string): Promise<UploadS3_IMGUP>; }