@haad/ipfsd-ctl
simple controls for an ipfs node
Last updated 3 years ago by haad .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @haad/ipfsd-ctl 
SYNC missed versions from official npm registry.

ipfsd-ctl

standard-readme compliant Coverage Status Travis CI Circle CI Dependency Status js-standard-style

Control an ipfs node daemon using Node.js

Table of Contents

Install

Install:

npm install --save ipfsd-ctl

Usage

IPFS daemons are already easy to start and stop, but this module is here to do it from JavaScript itself.

// Start a disposable node, and get access to the api
// print the node id, and kill the temporary daemon

// IPFS_PATH will point to /tmp/ipfs_***** and will be
// cleaned up when the process exits.

var ipfsd = require('ipfsd-ctl')

ipfsd.disposableApi(function (err, ipfs) {
  ipfs.id(function (err, id) {
    console.log(id)
    process.exit()
  })
})

If you need want to use an existing ipfs installation you can set $IPFS_EXEC=/path/to/ipfs to ensure it uses that.

For more details see https://ipfs.github.io/js-ipfsd-ctl/.

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

License

MIT

Current Tags

  • 0.18.0-beta.11                                ...           latest (3 years ago)

14 Versions

  • 0.18.0-beta.11                                ...           3 years ago
  • 0.18.0-beta.10                                ...           3 years ago
  • 0.18.0-beta.9                                ...           3 years ago
  • 0.18.0-beta.8                                ...           3 years ago
  • 0.18.0-beta.7                                ...           3 years ago
  • 0.18.0-beta.6                                ...           3 years ago
  • 0.18.0-beta.5                                ...           4 years ago
  • 0.18.0-beta.4                                ...           4 years ago
  • 0.18.0-beta.3                                ...           4 years ago
  • 0.18.0-beta.2                                ...           4 years ago
  • 0.18.0-beta.1                                ...           4 years ago
  • 0.18.0-pre3                                ...           4 years ago
  • 0.18.0-pre2                                ...           4 years ago
  • 0.18.0-pre1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 14
Last Month 15
Dependencies (8)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |