start-ipfs-daemon
Spawn an IPFS daemon from Node.js
Install
npm i start-ipfs-daemon
Usage
First install your favourite go-ipfs daemon, you could npm install go-ipfs-dep
, brew install ipfs
or whatever.
const startDaemon = const daemon = await // Your go IPFS Daemon is now READY to use // Your daemon configurationconsole // Maybe you wanna talk to it over the HTTP API?const IpfsApi = const ipfs = // Node.js child process// https://nodejs.org/api/child_process.html#child_process_class_childprocess// ...enhanced by execa// https://www.npmjs.com/package/execaawait daemonprocess
Contribute
Feel free to dive in! Open an issue or submit PRs.
License
MIT © Alan Shaw