# mongoose-attachments-aws

> AWS S3 Storage Provider for mongoose-attachments

Latest version **1.0.1** (published 2015-12-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install mongoose-attachments-aws
pnpm add mongoose-attachments-aws
yarn add mongoose-attachments-aws
bun add mongoose-attachments-aws
```

## 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 | 2015-12-15 |
| First published | 2015-09-29 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | TWG |
| Maintainers | krisk |
| Keywords | mongoose, attachments, s3, aws |

## Links

- npm: https://www.npmjs.com/package/mongoose-attachments-aws
- Repository: https://github.com/twg/mongoose-attachments-aws
- Homepage: https://github.com/twg/mongoose-attachments-aws#readme
- Issues: https://github.com/twg/mongoose-attachments-aws/issues
- npm.io page: https://npm.io/package/mongoose-attachments-aws

## Dependencies (4)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.2.4
- [file-type](https://npm.io/package/file-type.md) 3.3.1
- [read-chunk](https://npm.io/package/read-chunk.md) 1.0.1
- [mongoose-attachments](https://npm.io/package/mongoose-attachments.md) ^0.1.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [btrz-health-check](https://npm.io/package/btrz-health-check.md) — 474 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-12-15
- 1.0.0 — 2015-12-15
- 0.0.2 — 2015-09-29
- 0.0.1 — 2015-09-29

## README

# mongoose-attachments-aws

AWS S3 Storage Provider for [mongoose-attachments](https://github.com/heapsource/mongoose-attachments).

### Installation

    $ npm install mongoose-attachments-aws

### Usage

The library will register automatically with `mongoose-attachments` by performing `require` and return a reference to the `mongoose-attachments` plugin:

```javascript
var attachments = require('mongoose-attachments-aws');
```

For further instructions check [mongoose-attachments](https://github.com/firebaseco/mongoose-attachments).

### Configuration

#### Provider Name

`aws`

#### Options

- `region`: the s3 region
- `key`: the s3 accessKeyId
- `secret`: the s3 secretAccessKey
- `bucket`: the s3 bucket in which to place the file
- `endpoint`: defaults to 'https://s3.amazonaws.com/<bucket>'
- `acl`: defaults to 'private'

For other configurations check [mongoose-attachments](https://github.com/firebaseco/mongoose-attachments).

```javascript
var storage = {}
storage.providerName = 'aws'
storage.options = {
  'region': '<region>',
  'key'   : '<key>',
  'secret': '<secret>',
  'bucket': '<bucket>',
  'acl'   : 'public-read'
}

require('mongoose-attachments-aws')

schema.plugin(require('mongoose-attachments'), {
  directory: 'images',
  storage: storage,
  properties: buildProperties()
})
```
## License (Apache 2.0)

Copyright (c) 2015 TWG - http://www.theworkinggroup.ca

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