savim-s3
v1.1.400
Published
[![Test Coverage](https://api.codeclimate.com/v1/badges/ae0843030bc8e307e5d1/test_coverage)](https://codeclimate.com/github/qlaffont/savim-s3/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/ae0843030bc8e307e5d1/maintainability)](h
Downloads
2,243
Readme
savim-s3
A simple library to save file with Savim to a AWS S3. Old Owner: @flexper
Usage
import { Savim } from 'savim';
import { SavimAWSS3ProviderConfig, SavimAWSS3Provider } from 'savim-s3';
const savim = new Savim();
await savim.addProvider<SavimAWSS3ProviderConfig>(SavimAWSS3Provider, {
Bucket: 'testbucket',
region: 'eu-west-1',
credentials: {
accessKeyId: 'testAccessKeyId',
secretAccessKey: 'testSecretAccessKey',
},
});
await savim.uploadFile('test.txt', 'thisisatest');
Tests
To execute jest tests (all errors, type integrity test)
pnpm test
Maintain
This package use TSdx. Please check documentation to update this package.