pico-s3
TypeScript icon, indicating that this package has built-in type declarations

2.6.0 • Public • Published

Pico S3

npm version

A super lightweight S3 client that doesn't require the aws sdk. Be sure to 🌟 this repository for updates!

Installation

> npm i pico-s3

Example

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"
})

Package Sidebar

Install

npm i pico-s3

Weekly Downloads

591

Version

2.6.0

License

MIT

Unpacked Size

30.1 kB

Total Files

15

Last publish

Collaborators

  • smashah