# basic-s3

> Basic Class to handle s3 API Calls

Latest version **1.0.1** (published 2020-07-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install basic-s3
pnpm add basic-s3
yarn add basic-s3
bun add basic-s3
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-07-05 |
| First published | 2020-07-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dectom |
| Maintainers | dectom |

## Links

- npm: https://www.npmjs.com/package/basic-s3
- Repository: https://github.com/Dectom/Basic-S3
- Homepage: https://github.com/Dectom/Basic-S3#readme
- Issues: https://github.com/Dectom/Basic-S3/issues
- npm.io page: https://npm.io/package/basic-s3

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.709.0

## Recent versions

- 1.0.1 (latest) — 2020-07-05
- 1.0.0 — 2020-07-05

## README

# Basic-S3

Basic S3 Is a project I have created to make the basic actions of using and interacting with S3 compatible APIs a lot easier

## Installation

Installation is simple, Just run `npm install basic-s3`

## Example Usage

```js
const Storage = require("basic-s3");

const opts = {
  s3Options: {
    accessKeyId: "accessKeyId",
    secretAccessKey: "secretAccessKey",
    endpoint: "endpointUrlHere",
    region: "optionalRegionForEndpoint"
  },
  bucketName: "bucketName"
}

const S3 = new Storage(opts);

S3.getObject("Key");
```

## Current Methods

Currently Implemented Methods

- getObject(key)
- listObjects()
- uploadToS3(key, localFile)
- deleteFromS3(key)

Additional Helper Functions

- deleteLocalFile(localFilePath)

---
_Source: https://npm.io/package/basic-s3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
