-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ae5edd
commit b8af26b
Showing
5 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# deno-s3-lite-client | ||
# s3-lite-client | ||
|
||
This is a lightweight S3 client for Deno, designed to offer all the key features you may need, with no dependencies | ||
outside of the Deno standard library. It does not use any Deno-specific features, so it should work with any modern | ||
JavaScript runtime that supports the `fetch` API and URL imports. | ||
This is a lightweight S3 client for Deno and other modern JavaScript runtimes. It is designed to offer all the key | ||
features you may need, with no dependencies outside of the Deno standard library. It does not use any Deno-specific | ||
features, so it should work with any runtime that supports the `fetch` API, web streams API, and ES modules (ESM). | ||
|
||
This client is 100% MIT licensed, and is derived from the excellent | ||
[MinIO JavaScript Client](https://github.com/minio/minio-js). | ||
|
@@ -39,7 +39,7 @@ Supported functionality: | |
List data files from a public data set on Amazon S3: | ||
|
||
```typescript | ||
import { S3Client } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { S3Client } from "@bradenmacdonald/s3-lite-client"; | ||
|
||
const s3client = new S3Client({ | ||
endPoint: "s3.us-east-1.amazonaws.com", | ||
|
@@ -75,7 +75,7 @@ const keys = await Array.fromAsync(s3client.listObjects(), (entry) => entry.key) | |
Uploading and downloading a file using a local MinIO server: | ||
|
||
```typescript | ||
import { S3Client } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { S3Client } from "@bradenmacdonald/s3-lite-client"; | ||
|
||
// Connecting to a local MinIO server: | ||
const s3client = new S3Client({ | ||
|
@@ -129,7 +129,7 @@ Then while MinIO is running, run | |
deno test --allow-net integration.ts | ||
``` | ||
|
||
To debug what MinIO is seeing, run these two commands: | ||
(If you encounter issues and need to debug what MinIO is seeing, run these two commands:) | ||
|
||
```sh | ||
mc alias set localdebug http://localhost:9000 AKIA_DEV secretkey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
{ | ||
"name": "@bradenmacdonald/s3-lite-client", | ||
"version": "0.7.1", | ||
"exports": "./mod.ts", | ||
"fmt": { | ||
"lineWidth": 120 | ||
}, | ||
"lock": false | ||
"lock": false, | ||
"imports": { | ||
"@std/assert": "jsr:@std/assert@^0.218", | ||
"@std/io": "jsr:@std/io@^0.218" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { assert } from "https://deno.land/[email protected]/assert/assert.ts"; | ||
export { assertEquals } from "https://deno.land/[email protected]/assert/assert_equals.ts"; | ||
export { assertInstanceOf } from "https://deno.land/[email protected]/assert/assert_instance_of.ts"; | ||
export { assertRejects } from "https://deno.land/[email protected]/assert/assert_rejects.ts"; | ||
export { assert } from "@std/assert/assert"; | ||
export { assertEquals } from "@std/assert/assert_equals"; | ||
export { assertInstanceOf } from "@std/assert/assert_instance_of"; | ||
export { assertRejects } from "@std/assert/assert_rejects"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { Buffer } from "https://deno.land/[email protected]/io/buffer.ts"; | ||
export { Buffer } from "@std/io/buffer"; |