Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
support for the new dignified version
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Apr 11, 2016
1 parent af05af6 commit ef0f4fc
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 11 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,25 @@ js-libp2p-ipfs

> libp2p build (module) used in js-ipfs
## Usage
# Installation

## API
## npm

## Examples
```sh
> npm i libp2p-ipfs
```

## Use in Node.js

```js
const lip2p = require('libp2p-ipfs')
```

# Usage

# API

# Examples

- Start two libp2p Nodes (create and make them listen)
- Set up a handler for a protocol (through multistream)
Expand Down
3 changes: 3 additions & 0 deletions examples/example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
'use strict'
/* eslint-disable no-console */

const Peer = require('peer-info')
const libp2p = require('../src')
const multiaddr = require('multiaddr')
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"test": "dignified-test",
"test:node": "dignified-test node",
"test:browser": "dignified-test browser",
"build": "dignified-build",
"test": "dignified-test node",
"build": "dignified-build node",
"lint": "dignified-lint",
"release": "dignified-release",
"release-minor": "dignified-release --minor",
"release-major": "dignified-release --major"
"release": "dignified-release node",
"release-minor": "dignified-release node --minor",
"release-major": "dignified-release node --major"
},
"repository": {
"type": "git",
Expand All @@ -29,7 +27,7 @@
"homepage": "https://github.com/ipfs/js-libp2p-ipfs#readme",
"devDependencies": {
"chai": "^3.5.0",
"dignified.js": "github:dignifiedquire/dignified.js",
"dignified.js": "^1.0.1",
"pre-commit": "^1.1.2"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const Swarm = require('libp2p-swarm')
const Peer = require('peer-info')
const TCP = require('libp2p-tcp')
Expand Down
1 change: 1 addition & 0 deletions test/test-libp2p-ipfs.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict'
/* eslint-env mocha */

const expect = require('chai').expect
Expand Down

0 comments on commit ef0f4fc

Please sign in to comment.