lean-s3 0.8.11 → 0.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.d.mts +723 -0
- package/dist/index.mjs +1213 -0
- package/package.json +19 -18
- package/dist/index.d.ts +0 -709
- package/dist/index.js +0 -1791
package/README.md
CHANGED
|
@@ -189,6 +189,19 @@ const client = new S3Client({
|
|
|
189
189
|
});
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
+
### Backblaze B2
|
|
193
|
+
```js
|
|
194
|
+
// Docs: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api
|
|
195
|
+
const client = new S3Client({
|
|
196
|
+
// keep {region} placeholders (it is used internally).
|
|
197
|
+
endpoint: "https://s3.{region}.backblazeb2.com",
|
|
198
|
+
region: "<your-region>", // something like "eu-central-003"
|
|
199
|
+
bucket: "<your-bucket-name>",
|
|
200
|
+
accessKeyId: process.env.S3_ACCESS_KEY_ID, // <your-application-key-id>,
|
|
201
|
+
secretAccessKey: process.env.S3_SECRET_KEY, // <your-application-key>,
|
|
202
|
+
});
|
|
203
|
+
```
|
|
204
|
+
|
|
192
205
|
Popular S3 provider missing? Open an issue or file a PR!
|
|
193
206
|
|
|
194
207
|
## Tested On
|
|
@@ -197,6 +210,9 @@ To ensure compability across various providers and self-hosted services, all tes
|
|
|
197
210
|
- Hetzner Object Storage
|
|
198
211
|
- Cloudflare R2
|
|
199
212
|
- Garage
|
|
213
|
+
- Backblaze B2
|
|
200
214
|
- Minio
|
|
201
215
|
- LocalStack
|
|
216
|
+
- RustFS
|
|
202
217
|
- Ceph
|
|
218
|
+
- S3Mock
|