From fb2cf1189185dc317bbcd068ba52394335250e54 Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Wed, 11 Feb 2015 10:09:53 -0800 Subject: [PATCH] Corrected the link for documentation relating to NodeJS, and added one clarification regarding building modules. --- Doc/Manual/Javascript.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/Manual/Javascript.html b/Doc/Manual/Javascript.html index cae199048..5e6540c7d 100644 --- a/Doc/Manual/Javascript.html +++ b/Doc/Manual/Javascript.html @@ -197,10 +197,10 @@ $ sudo npm install -g node-gyp
 $ swig -javascript -node -c++ example.i
-

Then run node-gyp

+

Then run node-gyp build to actually create the module:

-$ node-gyp
+$ node-gyp build

This will create a build folder containing the native module. To use the extension you need to 'require' it in your Javascript source file:

@@ -410,7 +410,7 @@ open new windows, and many more things. };
-

26.4 Examples

+

26.4 Examples

Some basic examples are shown here in more detail.