🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

sqess

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqess

A wrapper around SQS

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

sqess

A wrapper around SQS

Complete Documentation

Install

npm install --save sqess

# Or, if you fancy
yarn add sqess

Usage

Basic usage is as follows, check out the complete documentation if you feel so inclined.

import Queue from 'sqess';

async function main() {
  
  // Initializes the sqess instance but doesn't create the queue
  const queue = new Queue({
    queueName: 'test-queue-1',
    handler: async (queueItem) => Promise.resolve(true),
    onFinish: () => true,
  });

  // Actually creates the queue
  await queue.create();

  // Fill that queue up
  await queue.fill([/* Either a single item or an array of items */]);

  // Process queue items until there's no tomorrow
  await queue.process();
}

main();

Keywords

sqs

FAQs

Package last updated on 18 Feb 2018

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