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

@types/ssh2-streams

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ssh2-streams

TypeScript definitions for ssh2-streams

  • 0.1.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
413K
decreased by-23.4%
Maintainers
1
Weekly downloads
 
Created

What is @types/ssh2-streams?

@types/ssh2-streams provides TypeScript definitions for the ssh2-streams library, which is used for parsing and generating SSH2 protocol streams. This package is essential for developers who want to use ssh2-streams in a TypeScript environment, ensuring type safety and better development experience.

What are @types/ssh2-streams's main functionalities?

Creating an SSH2 Stream

This feature allows you to create an SSH2 stream and handle data events. The code sample demonstrates how to create an SSH2 stream, listen for data events, and write data to the stream.

const { SSH2Stream } = require('ssh2-streams');
const sshStream = new SSH2Stream();
sshStream.on('data', (data) => {
  console.log('Data received:', data);
});
sshStream.write('Hello SSH');

Parsing SSH2 Packets

This feature allows you to parse SSH2 packets. The code sample shows how to create an SSH2 stream, listen for packet events, and write packet data to the stream.

const { SSH2Stream } = require('ssh2-streams');
const sshStream = new SSH2Stream();
sshStream.on('packet', (packet) => {
  console.log('Packet received:', packet);
});
sshStream.write('Some SSH packet data');

Generating SSH2 Packets

This feature allows you to generate SSH2 packets. The code sample demonstrates how to create an SSH2 stream and generate a packet from given data.

const { SSH2Stream } = require('ssh2-streams');
const sshStream = new SSH2Stream();
const packet = sshStream.packetWrite('Some SSH packet data');
console.log('Generated packet:', packet);

Other packages similar to @types/ssh2-streams

FAQs

Package last updated on 25 Sep 2023

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