ipfs-cluster / js-cluster-client

A client library for the IPFS Cluster HTTP API, implemented in JavaScript.
MIT License
31 stars 16 forks source link

[NodeJs] Not able to import #4

Closed vasa-develop closed 5 years ago

vasa-develop commented 5 years ago
// or connect with multiaddr
var cluster = ipfsCluster('/ip4/127.0.0.1/tcp/9094')

// or using options
var cluster = ipfsCluster({ host: 'localhost', port: '9094', protocol: 'http' })

// or specifying a specific API path
var cluster = ipfsCluster({ host: '1.1.1.1', port: '80', 'api-path': '/some/api/path' })

The lib throws an error while importing using the above 3 methods.