We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8970b00 commit bd91f06Copy full SHA for bd91f06
4 files changed
1_hello_world/binding.gyp 1_hello_world/node_0.10/binding.gyp1_hello_world/binding.gyp renamed to 1_hello_world/node_0.10/binding.gyp
1_hello_world/hello.cc 1_hello_world/node_0.10/hello.cc1_hello_world/hello.cc renamed to 1_hello_world/node_0.10/hello.cc
@@ -8,9 +8,9 @@ Handle<Value> Method(const Arguments& args) {
8
return scope.Close(String::New("world"));
9
}
10
11
-void init(Handle<Object> exports) {
+void Init(Handle<Object> exports) {
12
exports->Set(String::NewSymbol("hello"),
13
FunctionTemplate::New(Method)->GetFunction());
14
15
16
-NODE_MODULE(hello, init)
+NODE_MODULE(hello, Init)
1_hello_world/hello.js 1_hello_world/node_0.10/hello.js1_hello_world/hello.js renamed to 1_hello_world/node_0.10/hello.js
1_hello_world/package.json 1_hello_world/node_0.10/package.json1_hello_world/package.json renamed to 1_hello_world/node_0.10/package.json
@@ -4,5 +4,8 @@
4
"description": "Node.js Addons Example #1",
5
"main": "hello.js",
6
"private": true,
7
+ "scripts": {
+ "test": "node hello.js"
+ },
"gypfile": true
0 commit comments