1.0.5 • Published 3 years ago

@sadorlovsky/lowdb-s3 v1.0.5

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

lowdb-s3

Lowdb AWS S3 adapter

Adapter for lowdb which uses AWS S3 to store data.

Requires lowdb@1.0.

Usage

npm install @sadorlovsky/lowdb-s3@1
const low = require('lowdb')
const S3 = require('@sadorlovsky/lowdb-s3')

const adapter = new S3({ bucket: 'bucket', key: 'db.json' })
const db = await low(adapter)

Custom S3 config

const low = require('lowdb')
const S3 = require('@sadorlovsky/lowdb-s3')

const adapter = new S3({ bucket: 'bucket', key: 'db.json' }, {
  accessKeyId: 'ACCESS_KEY_ID',
  secretAccessKey: 'SECRET_ACCESS_KEY',
  region: 'custom-region',
  endpoint: 'custom.endpoint.com'
})
const db = await low(adapter)

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago