Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/napibox
Experimenting with the new napi Node.js addon API
https://github.com/thlorenz/napibox
Last synced: 15 days ago
JSON representation
Experimenting with the new napi Node.js addon API
- Host: GitHub
- URL: https://github.com/thlorenz/napibox
- Owner: thlorenz
- License: mit
- Created: 2018-01-08T20:57:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-09T23:30:23.000Z (almost 7 years ago)
- Last Synced: 2024-10-18T03:18:53.354Z (20 days ago)
- Language: C++
- Homepage: https://github.com/thlorenz/napibox
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# napibox
Experimenting with the new napi Node.js addon API
## Build Xcode Project
A lot of times it is useful to debug an addon with Xcode.
To create an Xcode project for a particular example run the following from its directory.
```sh
node-gyp configure --debug -- -f xcode
```Now you should have a `./build/binding.xcodeproj` which you can open. Configure the executable of the project in Xcode
as `node` and debug away :)## Resources
- [docs](https://nodejs.org/api/n-api.html)
- [napi C++ API](https://github.com/nodejs/node-addon-api)
- [addon-examples](https://github.com/nodejs/abi-stable-node-addon-examples) showing both the C and C++ API
- [napi tests in Node.js core](https://github.com/nodejs/node/tree/master/test/addons-napi)
- [bcrypt port to napi C++ API](https://medium.com/@nicknaso/how-i-ported-bcrypt-to-new-n-api-d0b8c9fe6136)## License
MIT