Skip to content

gzx-miller/electron-n-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)实现高可扩展性接口