Skip to content

Commit 7d9dfda

Browse files
committed
doc: add ref to option to enable n-api
Since its guarded in by a command line option say that in the docs and provide the option that needs to be used to enable it. PR-URL: #13406 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießn <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Ginchereau <jasongin@microsoft.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 2715c9f commit 7d9dfda

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/n-api.md

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ For example:
6060
#include <node_api.h>
6161
```
6262

63+
As the feature is experimental it must be enabled with the
64+
following command line
65+
[option](https://nodejs.org/dist/latest-v8.x/docs/api/cli.html#cli_napi_modules):
66+
67+
```bash
68+
--napi-modules
69+
```
70+
6371
## Basic N-API Data Types
6472

6573
N-API exposes the following fundamental datatypes as abstractions that are

0 commit comments

Comments
 (0)