Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@aws-sdk/eventstream-marshaller
Advanced tools
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/eventstream-marshaller/preview.svg)](https://www.npmjs.com/package/@aws-sdk/eventstream-marshaller) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/eventstream-marshaller.svg)](https://www.npm
@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.
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);
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 event streams. While it is more general-purpose compared to @aws-sdk/eventstream-marshaller, it can be used for similar tasks involving stream processing.
The kinesis-client-library is a package specifically designed for working with AWS Kinesis streams. It provides higher-level abstractions for consuming and processing Kinesis streams, making it more specialized compared to @aws-sdk/eventstream-marshaller, which is more low-level and general-purpose for event stream serialization and deserialization.
FAQs
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/eventstream-marshaller/latest.svg)](https://www.npmjs.com/package/@aws-sdk/eventstream-marshaller) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/eventstream-marshaller.svg)](https://www.npmj
The npm package @aws-sdk/eventstream-marshaller receives a total of 190,464 weekly downloads. As such, @aws-sdk/eventstream-marshaller popularity was classified as popular.
We found that @aws-sdk/eventstream-marshaller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.