@libp2p/daemon
v5.0.1
Published
libp2p-daemon JavaScript implementation
Downloads
91
Keywords
Readme
@libp2p/daemon
libp2p-daemon JavaScript implementation
Install
$ npm i @libp2p/daemon
Specs
The specs for the daemon are currently housed in the go implementation. You can read them at libp2p/go-libp2p-daemon
Usage
$ jsp2pd --help
For a full list of options, you can run help jsp2pd --help
.
Running the defaults, jsp2pd
, will start the daemon and bind it to a local unix socket path.
Daemon clients will be able to communicate with the daemon over that unix socket.
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:
$ LIBP2P_JS=/path/to/js-libp2p/src/index.js jsp2pd
API Docs
License
Licensed under either of
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.