0.2.13 • Published 5 years ago

ipfsd-node v0.2.13

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

ipfsd-node

Travis branch npm David npm

install

npm i --save ipfsd-node

requirements

  • nodejs >= 10.0.0

usage

default (earth)

import node from 'ipfsd-node';

(async () => {
  const defaultNode = await node({ cleanup: true });
  await defaultNode.start();
  await defaultNode.stop();
})();

custom

(async () => {
  import { join } from 'path';
  import node from 'ipfsd-node';

  const options = {
    repoPath: join(process.cwd(), 'testrepo'),
    // repo-configs bootstrap, see https://github.com/crypto-io/repo-configs/tree/master/src/config/templates/bootstrap
    // or array
    bootstrap: 'leofcoin',
    ports: {
      swarm: 4002,
      api: 5002,
      // gateway: 9090
    },
    cleanup: true
  }

  const customNode = await node(options);
  const { addresses } = await customNode.start();
  await customNode.stop();
})();
0.2.13

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago