File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
site/source/docs/porting/connecting_cpp_and_javascript Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -798,6 +798,16 @@ for defining the binding:
798798 of one tool over the other will usually be based on which is the most
799799 natural fit for the project and its build system.
800800
801+ .. _interacting-with-code-emnapi :
802+
803+ Binding C/C++ and JavaScript - Node-API
804+ ===============================================================
805+
806+ `Emnapi `_ is an unofficial `Node-API `_ implementation which can be used
807+ on Emscripten. If you would like to port existing Node-API addon to WebAssembly
808+ or compile the same binding code to both Node.js native addon and WebAssembly,
809+ you can give it a try. See `Emnapi documentation `_ for more details.
810+
801811.. _library.js : https://github.com/emscripten-core/emscripten/blob/main/src/library.js
802812.. _test_js_libraries : https://github.com/emscripten-core/emscripten/blob/1.29.12/tests/test_core.py#L5043
803813.. _src/deps_info.json : https://github.com/emscripten-core/emscripten/blob/main/src/deps_info.json
@@ -808,3 +818,6 @@ for defining the binding:
808818.. _test/test_core.py : https://github.com/emscripten-core/emscripten/blob/1.29.12/tests/test_core.py#L4597
809819.. _Box2D : https://github.com/kripken/box2d.js/#box2djs
810820.. _Bullet : https://github.com/kripken/ammo.js/#ammojs
821+ .. _Emnapi : https://github.com/toyobayashi/emnapi
822+ .. _Node-API : https://nodejs.org/dist/latest/docs/api/n-api.html
823+ .. _Emnapi documentation : https://emnapi-docs.vercel.app/guide/getting-started.html
You can’t perform that action at this time.
0 commit comments