string2compact

WebJar for string2compact

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

1.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

string2compact
WebJar for string2compact
Ссылка на сайт

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

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

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

https://github.com/webtorrent/string2compact

Скачать string2compact

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : addr-to-ip-port jar [1.0.1,2)
org.webjars.npm : ipaddr.js jar [1.0.1,2)

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

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

string2compact travis npm downloads javascript style guide

Convert 'hostname:port' strings to BitTorrent's compact ip/host binary returned by Trackers

This module is the opposite of compact2string. It works in the browser with browserify. It is used by WebTorrent, and more specifically, the bittorrent-tracker and bittorrent-dht modules.

install

npm install string2compact

usage

single string2compact

var string2compact = require('string2compact')
var compact = string2compact('10.10.10.5:65408')
console.log(compact) // new Buffer('0A0A0A05FF80', 'hex')

tranform multiple into one buffer

var compacts = string2compact([ '10.10.10.5:128', '100.56.58.99:28525' ])
console.log(compacts) // new Buffer('0A0A0A05008064383a636f6d', 'hex')

license

MIT. Copyright (c) Feross Aboukhadijeh and WebTorrent, LLC.

org.webjars.npm

WebTorrent

⚡️⚡️⚡️ Streaming torrent client for the web, Node.js, Mac, Windows, & Linux.

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

Версия
1.3.0