This example is used in our article on Running Native Code in Electron and contains two npm packages:
native-increment
, a native addon, which will expose a function that increases a number by one.electron-app
, an Electron application that will use the native addon to increment numbers.
- Node.js (with npm or Yarn)
Please check out Running Native Code in Electron for an in-depth explanation.
Please ensure you have signed our CLA so that we can accept your contributions.