Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smashah/picos3
A super lightweight S3 client that doesn't require the AWS SDK. Be sure to 🌟 this repository for updates!
https://github.com/smashah/picos3
aws nodejs s3
Last synced: 18 days ago
JSON representation
A super lightweight S3 client that doesn't require the AWS SDK. Be sure to 🌟 this repository for updates!
- Host: GitHub
- URL: https://github.com/smashah/picos3
- Owner: smashah
- License: mit
- Created: 2021-08-10T17:43:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T02:20:27.000Z (7 months ago)
- Last Synced: 2024-05-01T14:34:13.550Z (7 months ago)
- Topics: aws, nodejs, s3
- Language: TypeScript
- Homepage:
- Size: 623 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pico S3
[![npm version](https://badge.fury.io/js/pico-s3.svg)](https://badge.fury.io/js/pico-s3)
A super lightweight S3 client that doesn't require the aws sdk. Be sure to 🌟 this repository for updates!
## Installation
```bash
> npm i pico-s3
```## Example
```javascript
const p3 = new PicoS3({
provider: process.env.PICO_S3_CLOUD_PROVIDER,
region: process.env.PICO_S3_REGION,
bucket: process.env.PICO_S3_BUCKET,
accessKeyId: process.env.PICO_S3_ACCESS_KEY_ID,
secretAccessKey: process.env.PICO_S3_SECRET_ACCESS_KEY,
// With MiniIO, an API host must also be added. For example
//host: "http://127.0.0.1:9000"
});const URL = await p3.upload({
file: dataUrl,
filename: "cool new file"
})
```