Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const ipfs = require('ipfs')
  2.  
  3. const createNode = ipfs('/my-cool/repo-name', {
  4. api: '',
  5. gateway: '',
  6. swarm: [
  7. '/ip4/127.0.0.1/tcp/10000',
  8. '/ip4/127.0.0.1/tcp/20000/ws'
  9. ]
  10. })
  11.  
  12. createNode((err, node) => {
  13. if (err) throw err
  14. console.log('node is online')
  15. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement