mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-04-25 01:42:20 +00:00
simple
This commit is contained in:
parent
470d8bfc6a
commit
f70b1d42e0
10
README.md
10
README.md
@ -1,2 +1,8 @@
|
||||
# node-libp2p-tcp
|
||||
Node.js implementation of the TCP module that libp2p uses, which implements the abstract-connection interface
|
||||
node-libp2p-tcp
|
||||
===============
|
||||
|
||||
[](http://ipn.io) [[](http://webchat.freenode.net/?channels=%23ipfs) ](https://travis-ci.org/diasdavid/node-libp2p-tcp)  [](https://david-dm.org/diasdavid/node-libp2p-tcp) [](https://github.com/feross/standard)
|
||||
|
||||
> Node.js implementation of the TCP module that libp2p uses, which implements the [abstract-connection]() interface for dial/listen.
|
||||
|
||||
note: libp2p-tcp in Node.js is a very thin shim that adds the support to dial to a `multiaddr`. This small shim will enable libp2p to use other different transports.
|
||||
|
@ -4,10 +4,9 @@
|
||||
"description": "Node.js implementation of the TCP module that libp2p uses, which implements the abstract-connection interface",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "node tests/test-ac.js"
|
||||
},
|
||||
"pre-commit": [
|
||||
],
|
||||
"pre-commit": [],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/diasdavid/node-libp2p-tcp.git"
|
||||
@ -22,8 +21,12 @@
|
||||
},
|
||||
"homepage": "https://github.com/diasdavid/node-libp2p-tcp",
|
||||
"devDependencies": {
|
||||
"abstract-connection": "^0.1.0",
|
||||
"pre-commit": "^1.1.1",
|
||||
"standard": "^5.2.2",
|
||||
"tape": "^4.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"multiaddr": "^1.0.0"
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
var tape = require('tape')
|
||||
var tests = require('abstract-connection/tests')
|
||||
var conn = require('../src')
|
||||
|
||||
var common = {
|
||||
setup: function (t, cb) {
|
||||
cb(null, conn)
|
||||
},
|
||||
teardown: function (t, cb) {
|
||||
cb()
|
||||
}
|
||||
}
|
||||
|
||||
tests(tape, common)
|
Loading…
x
Reference in New Issue
Block a user