
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
sqs-input-stream
Advanced tools
Provides streams to read from AWS SQS in a separate thread.
npm install --save-dev sqs-input-stream
const input = new SqsInputStream({
// [Optional] Path to a custom logger module. It must export the default function
// (name: string) => ({
// error: (message: string, stack: any) => void
// })
// By default console.error is used
logger: './dummyLogger',
queueUrl: 'https://sqs.<region>.amazonaws.com/<id>/<queue_name>',
// [Optional] The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than pollingTimeout. Valid values greater zero. Default: 2.
pollingTimeout: 2,
// [Optional] The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.
batchSize: 1,
// [Optional] SQS client configuration. In case it is not set, SQS client will try to read creds from environment variables.
sqsClientConfig: {
region: 'eu-central-1',
credentials: {
accessKeyId: 'xxxxxxxxxxxxxxxxxxxx',
secretAccessKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
},
},
// [Optional] The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved. Default is 1 second.
visibilityTimeout: 2,
});
pipeline(input, new LogStream(), new SqsCleanStream(), (err) => console.error(err));
FAQs
Simple long polling stream for SQS
We found that sqs-input-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.