Edits history of script submission #392 for ' Get object in bucket as text (s3)'

  • deno
    import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
    
    type S3 = {
      endPoint: string;
      port: number;
      useSSL: boolean;
      pathStyle: boolean;
      bucket: string;
      accessKey: string;
      secretKey: string;
      region: string;
    };
    export async function main(s3: S3, path: string) {
      return (await new S3Client(s3).getObject(path)).text();
    }
    

    Submitted by hugo697 461 days ago

  • deno
    import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
    
    type S3 = {
      endPoint: string;
      port: number;
      useSSL: boolean;
      pathStyle: boolean;
      bucket: string;
      accessKey: string;
      secretKey: string;
      region: string;
    };
    export async function main(s3: S3, path: string) {
      return (await new S3Client(s3).getObject(path)).text();
    }
    

    Submitted by admin 1094 days ago

  • deno
    import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
    
    type S3 = {
      endPoint: string;
      port: number;
      useSSL: boolean;
      pathStyle: boolean;
      bucket: string;
      accessKey: string;
      secretKey: string;
      region: string;
    };
    export async function main(
      s3: S3,
      path: string,
    ) {
      return (await new S3Client(s3).getObject(path)).text();
    }

    Submitted by admin 1097 days ago

  • deno
    import type Resource from "https://deno.land/x/windmill@v1.85.0/mod.ts";
    import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
    
    export async function main(
      s3: Resource<"s3">,
      path: string,
    ) {
      return (await new S3Client(s3).getObject(path)).text();
    }

    Submitted by rubenfiszel 1153 days ago

  • deno
    import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
    import { S3Client } from "https://deno.land/x/s3_lite_client@0.5.0/mod.ts";
    
    export async function main(
      s3: wmill.Resource<"s3">,
      path: string,
    ) {
      return (await new S3Client(s3).getObject(path)).text();
    }

    Submitted by yassinsiouda74165 1153 days ago