File: checker-tool.md

package info (click to toggle)
node-addon-api 8.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,248 kB
  • sloc: cpp: 15,431; javascript: 5,631; ansic: 157; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Checker Tool

**node-addon-api** provides a [checker tool][] that will inspect a given
directory tree, identifying all Node.js native addons therein, and further
indicating for each addon whether it is an Node-API addon.

## To use the checker tool:

  1. Install the application with `npm install`.

  2. If the application does not depend on **node-addon-api**, copy the
     checker tool into the application's directory.

  3. If the application does not depend on **node-addon-api**, run the checker
     tool from the application's directory:

     ```sh
     node ./check-napi.js
     ```

     Otherwise, the checker tool can be run from the application's
     `node_modules/` subdirectory:

     ```sh
     node ./node_modules/node-addon-api/tools/check-napi.js
     ```

The tool accepts the root directory from which to start checking for Node.js
native addons as a single optional command line parameter. If omitted it will
start checking from the current directory (`.`).

[checker tool]: ../tools/check-napi.js