@brighter/storage-adapter-s3
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

@brighter/storage-adapter-s3

This is an S3 object storage adapter for the @brighter/storage library that comes pre-bundled with all the required S3 dependencies.

Quick Start

Installation, using npm:

npm i @brighter/storage-adapter-s3

Usage:

import { Storage } from '@brighter/storage-adapter-s3'

const config = { path: 'my-bucket' }
const configClient = { region: 'eu-central-1' }

const storage = Storage(config, configClient)

const main = async () => {
  await storage.write('msg', 'hi')
  const msg = await storage.read('msg')
  console.log(msg)
}

main().catch(console.error)

For more information:

Package Sidebar

Install

npm i @brighter/storage-adapter-s3

Weekly Downloads

0

Version

1.5.2

License

MIT

Unpacked Size

4.55 kB

Total Files

6

Last publish

Collaborators

  • brihter