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

  • deno
    import { S3Client } from "https://deno.land/x/[email protected]/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 393 days ago

  • deno
    import { S3Client } from "https://deno.land/x/[email protected]/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 1025 days ago

  • deno
    import { S3Client } from "https://deno.land/x/[email protected]/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 1029 days ago

  • deno
    import type Resource from "https://deno.land/x/[email protected]/mod.ts";
    import { S3Client } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      s3: Resource<"s3">,
      path: string,
    ) {
      return (await new S3Client(s3).getObject(path)).text();
    }

    Submitted by rubenfiszel 1085 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    import { S3Client } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      s3: wmill.Resource<"s3">,
      path: string,
    ) {
      return (await new S3Client(s3).getObject(path)).text();
    }

    Submitted by yassinsiouda74165 1085 days ago