node-addon-examples
node-addon-examples copied to clipboard
Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html
As of Nan version 2.1.0 there exists Nan::TypedArrayContents, which assists in accessing Typed Arrays. See https://github.com/nodejs/nan/blob/master/doc/v8_misc.md#nantypedarraycontents It would be very useful to have an example of how to use this....
why async_work example was removed?
Hi, Is it possible to add another example showing how to emit events from the c++ land? [Here's](https://github.com/bnoordhuis/node-event-emitter) an example done by bnoordhuis 2 years ago. Maybe you could rewrite...
how to extend a wrap? I know that there is tpl->Inherit (parent) but how to solve the question of unwarp, to get the correct object? Dinamic?\* w = ObjectWrap::Unwrap(args.This()); (sorry...
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.6 to 4.2.5. Release notes Sourced from actions/dependency-review-action's releases. 4.2.5 What's Changed Fixed a bug where some configuration options in external files were not being properly picked...
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.20.3 to 3.24.9. Changelog Sourced from github/codeql-action's changelog. CodeQL Action Changelog See the releases page for the relevant changes to the CodeQL CLI and language packs. Note...
It is quite fortunate that most examples run, Here are all the tests: ``` passed: C:\a\node-addon-examples\src\1-getting-started\1_hello_world\nan passed: C:\a\node-addon-examples\src\1-getting-started\1_hello_world\napi passed: C:\a\node-addon-examples\src\1-getting-started\1_hello_world\node-addon-api passed: C:\a\node-addon-examples\src\1-getting-started\1_hello_world\node-addon-api-addon-class passed: C:\a\node-addon-examples\src\1-getting-started\2_function_arguments\nan passed: C:\a\node-addon-examples\src\1-getting-started\2_function_arguments\napi passed: C:\a\node-addon-examples\src\1-getting-started\2_function_arguments\node-addon-api passed: C:\a\node-addon-examples\src\1-getting-started\3_callbacks\nan...
https://github.com/nodejs/node-addon-examples/blob/ed36ba2d8512d73c7171b9537c96a63bc34e9831/src/1-getting-started/7_factory_wrap/node-addon-api/myobject.cc#L24-L28 https://github.com/nodejs/node-addon-examples/blob/ed36ba2d8512d73c7171b9537c96a63bc34e9831/src/1-getting-started/6_object_wrap/node-addon-api/myobject.cc#L46-L58 I'm Newby, who just got into NAPI. In the above two codes, methods are create and return the object. I wonder why only the return value in `NewInstance`...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.20.55 to 20.11.30. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Hello, I've created issue in `node-addon-api` https://github.com/nodejs/node-addon-api/issues/1453 but it may be related more to scope of this repository. > I couldn't find in the documentation and examples how to properly...