0.0.2 • Published 5 years ago

gamecredits-electrumx-host-parse v0.0.2

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

node-gamecredits-electrumx-host-parse

NPM

electrum peer string parser

spec

install

npm i gamecredits-electrumx-host-parse

usage

  • jscode
const parse = require('electrum-host-parse')
const hostobject = parse.parsePeerString("electrum.gamecredits.network s50002 t50001")
console.log(hostobject)
  • typescript
import * as parse from 'electrum-host-parse'
const hostobject = parse.parsePeerString("electrum.gamecredits.network s50002 t50001")
console.log(hostobject)
  • result
{ host: 'electrum.gamecredits.network',
  ssl: 50002,
  tcp: 50001,
  pruning: null,
  http: null,
  https: null }