intertron

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i intertron

      Weekly Downloads

      1

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • luisivan