Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@aws-sdk/eventstream-serde-universal
Advanced tools
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/eventstream-serde-universal/latest.svg)](https://www.npmjs.com/package/@aws-sdk/eventstream-serde-universal) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/eventstream-serde-universal.svg)](h
@aws-sdk/eventstream-serde-universal is a package within the AWS SDK for JavaScript that provides serialization and deserialization of event streams. This is particularly useful for handling streaming data in AWS services like AWS Transcribe, AWS Kinesis, and others that use event streams.
Serialization of Event Streams
This feature allows you to serialize an event stream into a format that can be transmitted over the network. The code sample demonstrates how to create an instance of EventStreamMarshaller and serialize an event.
const { EventStreamMarshaller } = require('@aws-sdk/eventstream-serde-universal');
const marshaller = new EventStreamMarshaller();
const event = { eventType: 'example', data: 'sample data' };
const serializedEvent = marshaller.marshall(event);
console.log(serializedEvent);
Deserialization of Event Streams
This feature allows you to deserialize an event stream received over the network back into its original format. The code sample demonstrates how to create an instance of EventStreamMarshaller and deserialize an event.
const { EventStreamMarshaller } = require('@aws-sdk/eventstream-serde-universal');
const marshaller = new EventStreamMarshaller();
const serializedEvent = /* some serialized event data */;
const event = marshaller.unmarshall(serializedEvent);
console.log(event);
The 'event-stream' package is a toolkit for working with streams in Node.js. It provides a variety of utilities for creating and manipulating streams, including serialization and deserialization. While it is more general-purpose compared to @aws-sdk/eventstream-serde-universal, it can be used for similar tasks involving event streams.
The 'kinesis-client-library' package is specifically designed for working with AWS Kinesis streams. It provides higher-level abstractions for consuming and processing Kinesis streams, including serialization and deserialization of event data. It is more specialized compared to @aws-sdk/eventstream-serde-universal, which is more general-purpose for AWS event streams.
An internal package
You probably shouldn't, at least directly.
3.54.0 (2022-03-11)
FAQs
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/eventstream-serde-universal/latest.svg)](https://www.npmjs.com/package/@aws-sdk/eventstream-serde-universal) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/eventstream-serde-universal.svg)](h
The npm package @aws-sdk/eventstream-serde-universal receives a total of 1,202,293 weekly downloads. As such, @aws-sdk/eventstream-serde-universal popularity was classified as popular.
We found that @aws-sdk/eventstream-serde-universal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.