# storage-service

> A promise based wrapper for S3.

Latest version **0.1.19** (published 2015-11-24) · 0 weekly downloads

## Install

```sh
npm install storage-service
pnpm add storage-service
yarn add storage-service
bun add storage-service
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.19 |
| Published | 2015-11-24 |
| First published | 2015-10-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | wuggastudios |

## Links

- npm: https://www.npmjs.com/package/storage-service
- npm.io page: https://npm.io/package/storage-service

## Dependencies (2)

- [knox](https://npm.io/package/knox.md) ^0.9.2
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.1.24

## Recent versions

- 0.1.19 (latest) — 2015-11-24
- 0.1.18 — 2015-11-24
- 0.1.17 — 2015-10-13

## README

## Storage Service

### Summary

This module provides a Promise based S3 Storage wrapper. Simply pass in a S3Config object.

Example S3Config Object:

    S3Config = { 
        key: 'S3-KEY',    
        secret: 'S3-SECRET'};
        createCORSConfig: function CORSConfigGenerator(bucket) {
          return {
            Bucket: bucket,
            CORSConfiguration: {
              CORSRules: [{
                  AllowedHeaders: [
                    '*'
                  ],
                  AllowedMethods: [
                    'GET',
                    'PUT',
                    'POST'
                  ],
                  AllowedOrigins: [
                    '*'
                  ],
                  MaxAgeSeconds: 3000
                }]
            }
        }
    };


### Installation

Ensure you have access to the sinopia private npm registry, and then run the following command

        $ npm install --save storage-service

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