native-duplexpair

WebJar for native-duplexpair

Лицензия

Лицензия

MIT
Категории

Категории

Native Инструменты разработки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

native-duplexpair
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

native-duplexpair
WebJar for native-duplexpair
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/tediousjs/native-duplexpair

Скачать native-duplexpair

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/native-duplexpair/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>native-duplexpair</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/native-duplexpair/
implementation 'org.webjars.npm:native-duplexpair:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/native-duplexpair/
implementation ("org.webjars.npm:native-duplexpair:1.0.0")
'org.webjars.npm:native-duplexpair:jar:1.0.0'
<dependency org="org.webjars.npm" name="native-duplexpair" rev="1.0.0">
  <artifact name="native-duplexpair" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='native-duplexpair', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "native-duplexpair" % "1.0.0"
[org.webjars.npm/native-duplexpair "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

duplexpair

NPM Version NPM Downloads Build Status Coverage Status Dependency Status

Make a full duplex stream with 2 Duplex endpoints.

Note:

This is a fork of duplexpair, changed to use the "native" Duplex stream that is part of Node.JS instead of the version from the readable-stream package.

Install: npm install native-duplexpair

const DuplexPair = require('native-duplexpair');

const { socket1, socket2 } = new DuplexPair();

socket1.write('Hi');
console.log(socket2.read());  // => <Buffer 48 69>

// Or, using options that are passed to the Duplex constructor:

const { socket1, socket2 } = new DuplexPair({ encoding: 'utf8' });

socket1.write('Hi');
console.log(socket2.read());  // => 'Hi'

License

MIT

org.webjars.npm

Версии библиотеки

Версия
1.0.0