• Home
  • Raw
  • Download

Lines Matching full:addons

7   <title>C++ addons | Node.js v14.21.2 Documentation</title>
11 <link rel="canonical" href="https://nodejs.org/api/addons.html">
13 <body class="alt apidoc" id="api-section-addons">
30 <li><a href="addons.html" class="nav-addons active">C++ addons</a></li>
31 <li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li>
89 <div id="column1" data-id="addons" class="interior">
114 <a href="addons.json">View as JSON</a>
119 …<ol class="version-picker"><li><a href="https://nodejs.org/docs/latest-v19.x/api/addons.html">19.x…
120 <li><a href="https://nodejs.org/docs/latest-v18.x/api/addons.html">18.x <b>LTS</b></a></li>
121 <li><a href="https://nodejs.org/docs/latest-v17.x/api/addons.html">17.x</a></li>
122 <li><a href="https://nodejs.org/docs/latest-v16.x/api/addons.html">16.x <b>LTS</b></a></li>
123 <li><a href="https://nodejs.org/docs/latest-v15.x/api/addons.html">15.x</a></li>
124 <li><a href="https://nodejs.org/docs/latest-v14.x/api/addons.html">14.x <b>LTS</b></a></li>
125 <li><a href="https://nodejs.org/docs/latest-v13.x/api/addons.html">13.x</a></li>
126 <li><a href="https://nodejs.org/docs/latest-v12.x/api/addons.html">12.x</a></li>
127 <li><a href="https://nodejs.org/docs/latest-v11.x/api/addons.html">11.x</a></li>
128 <li><a href="https://nodejs.org/docs/latest-v10.x/api/addons.html">10.x</a></li>
129 <li><a href="https://nodejs.org/docs/latest-v9.x/api/addons.html">9.x</a></li>
130 <li><a href="https://nodejs.org/docs/latest-v8.x/api/addons.html">8.x</a></li>
131 <li><a href="https://nodejs.org/docs/latest-v7.x/api/addons.html">7.x</a></li>
132 <li><a href="https://nodejs.org/docs/latest-v6.x/api/addons.html">6.x</a></li>
133 <li><a href="https://nodejs.org/docs/latest-v5.x/api/addons.html">5.x</a></li>
134 <li><a href="https://nodejs.org/docs/latest-v4.x/api/addons.html">4.x</a></li>
135 <li><a href="https://nodejs.org/docs/latest-v0.12.x/api/addons.html">0.12.x</a></li>
136 <li><a href="https://nodejs.org/docs/latest-v0.10.x/api/addons.html">0.10.x</a></li></ol>
139 …t_on_github"><a href="https://github.com/nodejs/node/edit/master/doc/api/addons.md">Edit on GitHub…
146 <li><a href="#addons_c_addons">C++ addons</a>
150 <li><a href="#addons_context_aware_addons">Context-aware addons</a>
157 <li><a href="#addons_loading_addons_using_require">Loading addons using <code>require()</code></a><…
178 … <h2>C++ addons<span><a class="mark" href="#addons_c_addons" id="addons_c_addons">#</a></span></h2>
181 <p><em>Addons</em> are dynamically-linked shared objects written in C++. The
182 <a href="modules.html#modules_require_id"><code>require()</code></a> function can load addons as or…
183 Addons provide an interface between JavaScript and C/C++ libraries.</p>
184 <p>There are three options for implementing addons: Node-API, nan, or direct
187 Refer to <a href="n-api.html">C/C++ addons with Node-API</a> for more information on
189 <p>When not using Node-API, implementing addons is complicated,
206 more sophisticated asynchronous addons that need to move beyond the
213 <p>Internal Node.js libraries. Node.js itself exports C++ APIs that addons can
220 re-exported by Node.js and may be used to various extents by addons. See
256 <p>All Node.js addons must export an initialization function following
266 <p>When building addons with <code>node-gyp</code>, using the macro <code>NODE_GYP_MODULE_NAME</cod…
269 <h4>Context-aware addons<span><a class="mark" href="#addons_context_aware_addons" id="addons_contex…
270 <p>There are environments in which Node.js addons may need to be loaded multiple
398 …reads.html#worker_threads_class_worker"><code>Worker</code></a> threads, addons need to clean up a…
464 specifically to compile Node.js addons.</p>
476 <code>npm install</code> command to compile and install addons. Developers who wish to
497 it is compiled (i.e. sometimes it may be in <code>./build/Debug/</code>), addons can use
508 addons are required to link to V8 and may link to any of the other dependencies
517 source is downloaded, addons will have complete access to the full set of
527 <h4>Loading addons using <code>require()</code><span><a class="mark" href="#addons_loading_addons_u…
541 Node.js and V8 APIs for implementing addons. The V8 API can, and has, changed
543 the next). With each change, addons may need to be updated and recompiled in
553 <p>Node-API is an API for building native addons. It is independent from
556 across versions of Node.js. It is intended to insulate addons from
559 recompilation. Addons are built/packaged with the same approach/tools
599 <a href="n-api.html">C/C++ addons with Node-API</a>.</p>
601 <p>Following are some example addons intended to help developers get started. The
618 <p>Once the <code>binding.gyp</code> file is ready, the example addons can be configured and
622 <p>Addons will typically expose objects and functions that can be accessed from
688 <p>It is common practice within addons to pass JavaScript functions to a C++
738 <p>Addons can create and return new objects from within a C++ function as