开发者社区> 镜像站> NPM> openethereum-spawn
openethereum-spawn
(formerly `parity-spawn`)
Last updated 4 months ago by emilbayes .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install openethereum-spawn 
SYNC missed versions from official npm registry.

openethereum-spawn

Build Status

(formerly parity-spawn)

Usage

const OpenEthereum = require('openethereum-spawn')

main().catch(console.error)

async function main () {
  const p = new OpenEthereum({
    exec: require('openethereum-binary'),
    ipc: true,
    basePath: './data'
  })

  p.on('log', function (data) {
    console.log('openethereum log:', data)
  })

  process.on('SIGINT', () => p.kill())

  const started = await p.started
  console.log('started and operational?', started)
  const code = await p.stopped
  console.log('stopped with', code)
}

API

``

Install

npm install openethereum-spawn

License

ISC

Current Tags

  • 1.0.2                                ...           latest (4 months ago)

1 Versions

  • 1.0.2                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)