Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awssum-riakcs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awssum-riakcs

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

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 04 Dec 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc