Compare commits

..

3 Commits

4 changed files with 18 additions and 3 deletions

11
.travis.yml Normal file
View File

@ -0,0 +1,11 @@
sudo: false
language: node_js
node_js:
- "4.0"
# Make sure we have new NPM.
before_install:
- npm install -g npm
script:
- npm test

View File

@ -3,6 +3,9 @@ node-libp2p-tcp
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) ![Build Status](https://travis-ci.org/diasdavid/node-libp2p-tcp.svg?style=flat-square)](https://travis-ci.org/diasdavid/node-libp2p-tcp) ![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square) [![Dependency Status](https://david-dm.org/diasdavid/node-libp2p-tcp.svg?style=flat-square)](https://david-dm.org/diasdavid/node-libp2p-tcp) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
![](https://raw.githubusercontent.com/diasdavid/abstract-connection/master/img/badge.png)
![](https://raw.githubusercontent.com/diasdavid/abstract-transport/master/img/badge.png)
> 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.

View File

@ -1,6 +1,6 @@
{
"name": "libp2p-tcp",
"version": "0.1.0",
"version": "0.1.1",
"description": "Node.js implementation of the TCP module that libp2p uses, which implements the abstract-connection interface",
"main": "src/index.js",
"scripts": {
@ -21,7 +21,8 @@
},
"homepage": "https://github.com/diasdavid/node-libp2p-tcp",
"devDependencies": {
"abstract-connection": "^0.1.0",
"abstract-connection": "0.0.1",
"abstract-transport": "^0.1.0",
"pre-commit": "^1.1.1",
"standard": "^5.2.2",
"tape": "^4.2.0"

View File

@ -1,5 +1,5 @@
var tape = require('tape')
var tests = require('abstract-connection/tests')
var tests = require('abstract-transport/tests')
var conn = require('../src')
var common = {