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 207 days ago
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 840 days ago
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 843 days ago
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 899 days ago
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 899 days ago