Skip to content
/ picoS3 Public
forked from smashah/picoS3

A super lightweight S3 client that doesn't require the AWS SDK. Be sure to ๐ŸŒŸ this repository for updates!

License

Notifications You must be signed in to change notification settings

patuwwy/picoS3

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Pico S3

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

About

A super lightweight S3 client that doesn't require the AWS SDK. Be sure to ๐ŸŒŸ this repository for updates!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 63.9%
  • JavaScript 36.1%