UNPKG

ipc-node-go

Version:

An IPC implementation between Node and its child process (Golang binary) using the stdin / stdout as the transport.

11 lines (8 loc) 255 B
const ipc = require('../dist/index') const { join } = require('path') const io = new ipc(join(__dirname, './compired-go-binary')) io.init() io.on('error', console.log) io.on('get-time-every-20-seconds', (time, err) => { console.log(new Date(time)) })