# bfast-s3like

> AWS S3-like adapter for parse-server

Latest version **2.1.0** (published 2020-05-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install bfast-s3like
pnpm add bfast-s3like
yarn add bfast-s3like
bun add bfast-s3like
```

## 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 | 2.1.0 |
| Published | 2020-05-01 |
| First published | 2020-05-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 88.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | McKay Software |
| Maintainers | joshuamshana |
| Keywords | parse-server, AWS, S3, minio, ceph |

## Links

- npm: https://www.npmjs.com/package/bfast-s3like
- Repository: https://github.com/fahamutech/bfast-s3like
- Homepage: https://github.com/fahamutech/bfast-s3like#readme
- Issues: https://github.com/fahamutech/bfast-s3like/issues
- npm.io page: https://npm.io/package/bfast-s3like

## Dependencies (2)

- [minio](https://npm.io/package/minio.md) ^7.0.16
- [url-join](https://npm.io/package/url-join.md) ^4.0.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2020-05-01
- 0.0.1 — 2020-05-01

## README

# Parse Server: S3-like storage adapter


Based on [Minio's client](https://docs.minio.io/docs/javascript-client-quickstart-guide).

If you want to:
- Use AWS S3: go to [parse-server-s3-adapter](https://www.npmjs.com/package/parse-server-s3-adapter)
- Use S3-like storage, such as Minio, Ceph, GCS, etc: use this.

## Install

```
$ npm install --save bfast-s3like
```

## Usage

```js
filesAdapter: {
  module: 'bfast-s3like',
  options: {
    accessKey: 'accessKey',
    bucket: 'my_bucket',
    useSSL: true,
    endPoint: 'https://...',
    secretKey: 'secretKey'
  }
}
```

| Option | Default | Description |
|:-------|:-------:|:------------|
| `accessKey` | **required** ||
| `bucket` | **required** | The bucket to store data into. This can be a function that takes the filename and returns a string. |
| `direct` | `false` | Whether files are served from the `endPoint` (`true`) or proxied by Parse (`false`). This can be a function that takes the filename and returns a boolean. |
| `endPoint` | **required** | The URL to the storage service. Should be a full URL, with protocol and port (if non-standard), e.g. `https://play.minio.io:9000` or `https://minio.example.com`. |
| `port` | From `endPoint` | Override the port number. By default is parsed from the `endPoint` URL, with 80/443 as standard defaults based the value of `secure`. |
| `prefix` | `''` | A prefix to apply to all filenames. Can be set to e.g. `'foo/'` to put all files in a subdirectory. This can be a function that takes the filename and returns a string. |
| `region` | `'us-east-1'` | May not actually matter for some services, refer to your documentation. This can be a function that takes the filename and returns a string. |
| `secretKey` | **required** ||
| `useSSL` | From `endPoint` | Override whether the connection is secure or not. By default is parsed from the `endPoint` URL (`https` is secure, otherwise not). |

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