@libp2p/daemon-protocol 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,4 @@
1
+ This project is dual licensed under MIT and Apache-2.0.
2
+
3
+ MIT: https://www.opensource.org/licenses/mit
4
+ Apache-2.0: https://www.apache.org/licenses/license-2.0
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # js-libp2p-daemon-protocol
2
+
3
+ <a href="http://libp2p.io/"><img src="https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square" /></a>
4
+ <a href="http://webchat.freenode.net/?channels=%23libp2p"><img src="https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square" /></a>
5
+ <a href="https://discuss.libp2p.io"><img src="https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg" /></a>
6
+ <a href="https://waffle.io/libp2p/libp2p"><img src="https://img.shields.io/badge/pm-waffle-yellow.svg?style=flat-square" /></a>
7
+
8
+ > Contains the protobuf definitions of the communication protocol for libp2p daemons
9
+
10
+ ## Install
11
+
12
+ ```
13
+ npm i @libp2p/daemon-protocol
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ For a full list of options, you can run help `jsp2pd --help`.
19
+ Running the defaults, `jsp2pd`, will start the daemon and bind it to a local unix socket path.
20
+ Daemon clients will be able to communicate with the daemon over that unix socket.
21
+
22
+ As an alternative, you can use this daemon with a different version of libp2p as the one specified in `package.json`. You just need to define its path through an environment variable as follows:
23
+
24
+ ```sh
25
+ export LIBP2P_JS=./../../js-libp2p/src/index.js
26
+ ```
27
+
28
+ ## Contribute
29
+
30
+ This module is actively under development. Please check out the issues and submit PRs!
31
+
32
+ ## License
33
+
34
+ Licensed under either of
35
+
36
+ * Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0)
37
+ * MIT ([LICENSE-MIT](LICENSE-MIT) / http://opensource.org/licenses/MIT)