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

0.1.1 • Public • Published

node-electrum-host-parse

NPM
Build Status Coverage Status

electrum peer string parser

spec

install

npm i electrum-host-parse

usage

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

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i electrum-host-parse

    Weekly Downloads

    41

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    17.2 kB

    Total Files

    26

    Last publish

    Collaborators

    • you21979