Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 544 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 544 Bytes

Electron-n-api

electron use n-api extend native interface.

git clone [email protected]:gzx-miller/electron-n-api.git
npm install

cd addon
npm install
node-gyp rebuild

Modify js file

".\node_modules\bindings\bindings.js" add one line like this, under the "defaults"

['module_root', 'addon', 'build', 'Release', 'bindings'],

Run

cd ../
npm run start

My blog for this code

Electron通过nodejs的Addon(n-api)实现高可扩展性接口