@@ -203,34 +203,48 @@ <h1 slot=title>
203203
204204 < p >
205205 node-addon-api is not a library in the usual sense.
206- < br >
207- It’s not a DLL, not a binary, not something you “run”.
208206
209- < br >
210- It’s a header‑only C++ wrapper around Node’s native C API (N‑API).
211207 < br >
212208
213- Meaning:
214- < br >
209+ It’s not a DLL, not a binary, not something you “run”.
215210
216- It gives you C++ classes instead of raw C functions
217211 < br >
218212
219- It makes writing addons much easier
220- < br >
213+ It’s a header‑only C++ wrapper around Node’s native C API (N‑API).
221214
222- It handles memory safety, exceptions, type conversions
223215 < br >
224216
225- It hides the ugly parts of N‑API
226- < br >
217+ Meaning:
227218
228- It compiles into your addon — nothing is loaded at runtime
229219 < br >
230-
231- It’s basically a helper layer that makes writing C++ addons sane.
232220 </ p >
233221
222+ < ul >
223+ < li >
224+ It gives you C++ classes instead of raw C functions
225+ </ li >
226+
227+ < li >
228+ It makes writing addons much easier
229+ </ li >
230+
231+ < li >
232+ It handles memory safety, exceptions, type conversions
233+ </ li >
234+
235+ < li >
236+ It hides the ugly parts of N‑API
237+ </ li >
238+
239+ < li >
240+ It compiles into your addon — nothing is loaded at runtime
241+ </ li >
242+
243+ < li >
244+ It’s basically a helper layer that makes writing C++ addons sane.
245+ </ li >
246+ </ ul >
247+
234248
235249 < div class =blog-hdr >
236250 What it contains
@@ -239,43 +253,59 @@ <h1 slot=title>
239253
240254 < p >
241255 Inside node-addon-api, you’ll find:
256+ </ p >
257+
258+
259+ < ul >
260+ < li >
261+ napi.h
262+ </ li >
263+
264+ < li >
265+ napi-inl.h
266+ </ li >
267+
268+ < li >
269+ C++ classes like Napi::Env, Napi::Object, Napi::Function
270+ </ li >
271+
272+ < li >
273+ Templates for converting JS ↔ C++ types
274+ </ li >
275+
276+ < li >
277+ Exception wrappers
278+ </ li >
279+
280+ < li >
281+ ThreadSafeFunction helpers
282+ </ li >
283+
284+ < li >
285+ Async worker helpers
286+ </ li >
287+
288+ < li >
289+ There is no compiled code.
290+ < br >
291+ It’s all headers.
292+ </ li >
293+ </ ul >
294+
295+
296+
297+ < p >
242298 < br >
243299
244- napi.h
245- < br >
246-
247- napi-inl.h
248- < br >
249-
250- C++ classes like Napi::Env, Napi::Object, Napi::Function
251- < br >
252-
253- Templates for converting JS ↔ C++ types
254- < br >
255-
256- Exception wrappers
257- < br >
258-
259- ThreadSafeFunction helpers
260- < br >
261-
262- Async worker helpers
263- < br >
300+ The addon compiles these headers into your .node binary.
264301
265- There is no compiled code.
266- < br >
267- It’s all headers.
268302 < br >
269303
270- The addon compiles these headers into your .node binary.
271- </ p >
272-
273- < p >
274- it needs to be installed locally in the project directory, you will need a node_modules directory
304+ It needs to be installed locally in the project directory, you will need a node_modules directory
275305
276306 < code >
277307
278- npm i node-addon-api
308+ npm install node-addon-api
279309
280310 </ code >
281311
0 commit comments