Needling Perl Mongers

    serverless-sqs-client

    1.0.0 • Public • Published

    Serverless SQS Client

    Lets you use the same client for local and online development against AWS SQS.

    This library is intended to be used together with serverless-sqs-local.

    Installation

    yarn add serverless-sqs-client / npm install --save serverless-sqs-client

    Usage

    const sqs = require("serverless-sqs-client")();
    sqs.listQueues({}, (err, data) => err ? console.error(err, err.stack) : console.log(data));
    

    serverless-sqs-client takes an optional options object which is forwarded directly to SQS' constructor.

    Example:

    const sqs = require("serverless-sqs-client")({ accessKeyId: "fake-key-id", secretAccessKey: "******" })
    

    Keywords

    none

    Install

    npm i serverless-sqs-client

    DownloadsWeekly Downloads

    107

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • nevon