This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Awesome API Documentation #28
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ build/Release | |
node_modules | ||
|
||
dist | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ build/Release | |
node_modules | ||
|
||
test | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict' | ||
|
||
const multistream = require('multistream-select') | ||
const Connection = require('interface-connection').Connection | ||
|
||
const listener = new multistream.Listener() | ||
// or | ||
// const dialer = new multistream.Dialer() | ||
|
||
// supply a connection | ||
const conn = new Connection() | ||
|
||
// apply the multistream to the conn | ||
listener.handle(conn, () => { | ||
console.log('connection established') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,10 @@ | |
"lint": "aegir-lint", | ||
"test": "aegir-test", | ||
"build": "aegir-build", | ||
"release": "aegir-release", | ||
"release-minor": "aegir-release --type minor", | ||
"release-major": "aegir-release --type major", | ||
"docs": "aegir-docs", | ||
"release": "aegir-release --docs", | ||
"release-minor": "aegir-release --type minor --docs", | ||
"release-major": "aegir-release --type major --docs", | ||
"test:node": "aegir-test node", | ||
"test:browser": "aegir-test browser", | ||
"coverage": "aegir-coverage", | ||
|
@@ -40,21 +41,21 @@ | |
"author": "David Dias <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"async": "^2.1.2", | ||
"debug": "^2.2.0", | ||
"async": "^2.1.4", | ||
"debug": "^2.4.1", | ||
"interface-connection": "^0.3.0", | ||
"lodash.isfunction": "^3.0.8", | ||
"lodash.range": "^3.2.0", | ||
"pull-handshake": "^1.1.4", | ||
"pull-length-prefixed": "^1.2.0", | ||
"pull-stream": "^3.5.0", | ||
"semver": "^5.3.0", | ||
"varint": "^4.0.1" | ||
"varint": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^9.0.1", | ||
"aegir": "^9.3.0", | ||
"chai": "^3.5.0", | ||
"pre-commit": "^1.1.3", | ||
"pre-commit": "^1.2.2", | ||
"pull-pair": "^1.1.0", | ||
"run-parallel": "^1.1.6", | ||
"run-series": "^1.1.4" | ||
|
@@ -66,4 +67,4 @@ | |
"Richard Littauer <[email protected]>", | ||
"npm-to-cdn-bot (by Forbes Lindesay) <[email protected]>" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing a definition no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it could of course use some more description, but for showing up this is enough, as
class
etc is extracted from the codeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, then all is good :)