https://github.com/zhouzhi3859/napi_example
This is a repository of node napi examples.
https://github.com/zhouzhi3859/napi_example
addon napi node node-addon node-api nodejs
Last synced: 12 months ago
JSON representation
This is a repository of node napi examples.
- Host: GitHub
- URL: https://github.com/zhouzhi3859/napi_example
- Owner: zhouzhi3859
- Created: 2018-08-05T15:17:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T09:55:41.000Z (almost 7 years ago)
- Last Synced: 2025-01-14T16:54:07.258Z (about 1 year ago)
- Topics: addon, napi, node, node-addon, node-api, nodejs
- Language: C++
- Homepage:
- Size: 73.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# napi_example
This is a repository of node napi examples.\
If you want detail of napi, you can visit [node_napi].
# Table of Contents
* [callback](src/callback/callback.cc)
* [function_wrap](src/function_wrap/function_wrap.cc)
* [object_wrap](src/object_wrap/object_wrap.cc)
* [object_factory](src/object_factory/object_factory.cc)
# Where napi_module used
You can visit [app.js](./app.js) know how use it which napi_module are constructed.
# Run this example
You have to make sure [node_gyp] now installed in you computer.
```shell
npm install
npm run build
npm run dev
```
[node_napi]:http://nodejs.cn/api/n-api.html
[node_gyp]:https://www.npmjs.com/package/node-gyp