Socket
Socket
Sign inDemoInstall

awssum-riakcs

Package Overview
Dependencies
58
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

awssum-riakcs

AwsSum plugin for RiakCS, based on awssum-amazon-s3.


Version published
Maintainers
1
Weekly downloads
1
decreased by-88.89%

Weekly downloads

Readme

Source

awssum-riakcs / based on awssum-amazon-s3

How to use with RiakCS

Everything works in the same way like awssum-amazon-s3, except the amazonS3 init function.
You can now state a second parameter with your riakCS Url, if you won't it will operate like awssum-amazon-s3!
This is an AwsSum plugin!

You'll need to add awssum-amazon-s3 to your package.json dependencies. Both awssum and awssum-amazon are pulled in as peer dependencies.

Example with riakCS

Init riakCS and list all your buckets:

var RiakCS = require('awssum-riakcs');

var riakCS = new RiakCS.S3({
    'accessKeyId'     : process.env.ACCESS_KEY_ID,
    'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
    'region'          : RiakCS.US_EAST_1
}, 'your-riakcs-url.com');

riakCS.ListBuckets(function(err, data) {
    if (err) {
      console.log(err);
    } else {
      console.log(data);
    }
});

Example with amazon s3

Init s3 and list all your buckets:

var amazonS3 = require('awssum-riakcs');

var s3 = new amazonS3.S3({
    'accessKeyId'     : process.env.ACCESS_KEY_ID,
    'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
    'region'          : amazonS3.US_EAST_1
});

s3.ListBuckets(function(err, data) {
  if (err) {
    console.log(err);
  } else {
    console.log(data);
  }
});

Keywords

FAQs

Last updated on 04 Dec 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc