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

@aws-sdk/middleware-eventstream

Package Overview
Dependencies
Maintainers
5
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-eventstream

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-eventstream/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-eventstream) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-eventstream.svg)](https://www.npmj

  • 3.208.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
317K
increased by7.25%
Maintainers
5
Weekly downloads
 
Created

What is @aws-sdk/middleware-eventstream?

@aws-sdk/middleware-eventstream is a middleware package for the AWS SDK for JavaScript. It provides functionality to handle event streams, which are used in various AWS services to deliver real-time data. This package is essential for working with services that use event streams, such as AWS Transcribe, AWS Kinesis, and others.

What are @aws-sdk/middleware-eventstream's main functionalities?

Event Stream Handling

This feature allows you to handle event streams by marshalling data into the event stream format. The code sample demonstrates how to create an event stream using the EventStreamMarshaller.

const { EventStreamMarshaller } = require('@aws-sdk/middleware-eventstream');

const marshaller = new EventStreamMarshaller();

const eventStream = marshaller.marshall({
  headers: {},
  body: Buffer.from('example event data')
});

console.log(eventStream);

Event Stream Unmarshalling

This feature allows you to unmarshall event streams back into their original data format. The code sample demonstrates how to unmarshall an event stream using the EventStreamMarshaller.

const { EventStreamMarshaller } = require('@aws-sdk/middleware-eventstream');

const marshaller = new EventStreamMarshaller();

const eventStream = Buffer.from('example event stream');
const event = marshaller.unmarshall(eventStream);

console.log(event);

Other packages similar to @aws-sdk/middleware-eventstream

FAQs

Package last updated on 10 Nov 2022

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