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:
798
798
of one tool over the other will usually be based on which is the most
799
799
natural fit for the project and its build system.
800
800
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
+
801
811
.. _library.js : https://github.com/emscripten-core/emscripten/blob/main/src/library.js
802
812
.. _test_js_libraries : https://github.com/emscripten-core/emscripten/blob/1.29.12/tests/test_core.py#L5043
803
813
.. _src/deps_info.json : https://github.com/emscripten-core/emscripten/blob/main/src/deps_info.json
@@ -808,3 +818,6 @@ for defining the binding:
808
818
.. _test/test_core.py : https://github.com/emscripten-core/emscripten/blob/1.29.12/tests/test_core.py#L4597
809
819
.. _Box2D : https://github.com/kripken/box2d.js/#box2djs
810
820
.. _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