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

aws-connector

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-connector

Connector for the following AWS services: dynamo, sns, sqs

  • 0.7.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

AWS Connector

A wrapper around some aws-sdk components, adding a promised based interface.

The connector has two jobs:

  • Provide a promised based interface to some aws components.
  • Allow a base configuration to be set that is used as a base for each client that is created. This allows easy creation of clients which only differ in their authenciation details.

Other than this, the connector is completely transparent and simply mirrors the behaviour of the aws-sdk.

Usage for DynamoDB

var AWSConnector = require('aws-connector');

//Add a base configuration.
AWSConnector.dynamo.configure({ region: 'foo' });

//Make a request
AWSConnector.dynamo
    //Extend the base configuration with connection info.
    .connect({ accessKeyId: 'key', secretAccessKey: 'secret' })
    //Do your operation. It will return a promise.
    .scan({ TableName: 'books' })
    .then(function(books) {
        console.log(books)
    });

The options passed to dynamo.configure and dynamo.connect are passed directly to the aws-sdk DynamoDB client constructor.

Development

Style

We have an .editorconfig file to help us having a consistent coding style. Please install a plugin for your editor.

We use jshint for code linting. There are plugins for that too.

Tasks

We use gulp as a task runner. Install it globally first: npm install -g gulp. To see a list of gulp commands, run:

gulp help

Git hooks

In the package.json you can see a pre-commit and pre-push hook. On commiting or pushing these commands are executed. If they fail, the commit/push will fail. Add the --no-verify flag to your commit or push to bypass these checks.

FAQs

Package last updated on 24 Feb 2015

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