0.1.19 • Published 8 years ago

storage-service v0.1.19

Weekly downloads
13
License
-
Repository
-
Last release
8 years ago

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
    
0.1.19

8 years ago

0.1.18

8 years ago

0.1.17

9 years ago