We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82fab55 commit 146d63aCopy full SHA for 146d63a
src/module.cpp
@@ -37,4 +37,11 @@ static void init(v8::Local<v8::Object> target)
37
// Include your .hpp file at the top of this file.
38
}
39
40
-NODE_MODULE(module, init)
+// Here we initialize the module (we only do this once)
41
+// by attaching the init function to the module. This invokes
42
+// a variety of magic from inside nodejs core that we don't need to
43
+// worry about, but if you care the details are at https://github.com/nodejs/node/blob/34d1b1144e1af8382dad71c28c8d956ebf709801/src/node.h#L431-L518
44
+// We mark this NOLINT to avoid the clang-tidy checks
45
+// warning about code inside nodejs that we don't control and can't
46
+// directly change to avoid the warning.
47
+NODE_MODULE(module, init) // NOLINT
0 commit comments