# fsdk-file-minio

> MinIO server file connector for fsdk

Latest version **1.0.0** (published 2022-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install fsdk-file-minio
pnpm add fsdk-file-minio
yarn add fsdk-file-minio
bun add fsdk-file-minio
```

## 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.0 |
| Published | 2022-10-11 |
| First published | 2022-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 30.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | flipshop |
| Maintainers | naveen.joshi |

## Links

- npm: https://www.npmjs.com/package/fsdk-file-minio
- npm.io page: https://npm.io/package/fsdk-file-minio

## Dependencies (6)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.1043.0
- [express](https://npm.io/package/express.md) ^4.17.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0
- [fsdk-core-utils](https://npm.io/package/fsdk-core-utils.md) ^1.0.0
- [fsdk-test-utils](https://npm.io/package/fsdk-test-utils.md) ^1.0.0
- [@babel/plugin-transform-classes](https://npm.io/package/@babel/plugin-transform-classes.md) ^7.16.0

## Recent versions

- 1.0.0 (latest) — 2022-10-11

## README

# fsdk-file-minio

Upload files to a MinIO server.
## Options

```js
{
  endpoint: "minio.server.com",
  bucket: "test",
  access_key_id: "YOUR-ACCESS-KEY",
  secret_access_key: "YOUR-SECRET-KEY",

  // private bucket configuration
  private_bucket: 'private-bucket',
  private_access_key_id: "YOUR-ACCESS-KEY",
  private_secret_access_key: "YOUR-SECRET-KEY",
}
```

Optionally a `download_url_duration` option can be specified to change the valid duration of presigned download links. The duration is configured in seconds. (Default = 60 seconds)

## Configuring a private bucket in Minio

Certain operations in fsdk such as data import and export require a separate, protected bucket. The plugin will raise an error if operations used for imports and exports are invoked without the correct setup.

Configuring Minio for requires configuration of one additional option: `private_bucket` which refers to the name given to the protected bucket in Minio.

Separate credentials can, optionally, be used to access the private bucket by configuring the following options:

```
  private_access_key_id: "YOUR-ACCESS-KEY",
  private_secret_access_key: "YOUR-SECRET-KEY",
```

If no separate access key is given the same access key will be used for both the `bucket` and the `private_bucket`.

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