1.0.1 • Published 7 years ago

intertron v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Intertron

A way to expose functions to your Electron renderer process, to be used with Intertron Client

npm install intertron

const Intertron = require('intertron')

class DoSomething {
  static method(arg1, cb) {
    setTimeout(() => {
      cb(null, 'res')
    }, 100)
  }
}

new Intertron({ DoSomething })

And then the client will be able to call that method seamlessly as specified in Intertron Client