Socket
Socket
Sign inDemoInstall

@aws-sdk/eventstream-marshaller

Package Overview
Dependencies
Maintainers
5
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/eventstream-marshaller


Version published
Weekly downloads
536K
increased by0.15%
Maintainers
5
Created
Weekly downloads
 

Package description

What is @aws-sdk/eventstream-marshaller?

@aws-sdk/eventstream-marshaller is a package within the AWS SDK for JavaScript that provides utilities for serializing and deserializing event streams. This is particularly useful for working with AWS services that use event streams, such as AWS Transcribe and AWS Kinesis.

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

Serialize Event Stream

This feature allows you to serialize an event stream. The code sample demonstrates how to create an instance of EventStreamMarshaller and use it to serialize an event.

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

const marshaller = new EventStreamMarshaller(new TextEncoder(), new TextDecoder());
const event = { headers: {}, body: Buffer.from('example data') };
const serialized = marshaller.marshall(event);
console.log(serialized);

Deserialize Event Stream

This feature allows you to deserialize an event stream. The code sample demonstrates how to create an instance of EventStreamMarshaller and use it to deserialize an event.

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

const marshaller = new EventStreamMarshaller(new TextEncoder(), new TextDecoder());
const serialized = Buffer.from('example serialized data');
const event = marshaller.unmarshall(serialized);
console.log(event);

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

Changelog

Source

3.10.0 (2021-03-26)

Bug Fixes

  • clients: generate jest.config.js (#2172) (95b0e19)
  • lib-storage: fix fs error on browsers when using lib-storage upload (#2165) (5d9bc5f)

Features

  • credential-provider-ini: call fromTokenFile in assumeRole chaining (#2178) (fb95408)
  • credential-provider-web-identity: add fromTokenFile credentials provider (#2177) (88cc65d)
  • use ts-jest for running jest tests (#2088) (456002c)

Readme

Source

@aws-sdk/eventstream-marshaller

NPM version NPM downloads

FAQs

Last updated on 27 Mar 2021

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc