gamecredits-electrumx-host-parse
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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 }

/gamecredits-electrumx-host-parse/

    Package Sidebar

    Install

    npm i gamecredits-electrumx-host-parse

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    13.7 kB

    Total Files

    26

    Last publish

    Collaborators

    • gametoschi