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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Michael Dawson committed 2017-06-05 19:51:38 -04:00
1 parent 2715c9f1e4
commit 7d9dfdaea3
1 file changed
+8
+8
View File
@@ -60,6 +60,14 @@ For example:
#include <node_api.h>
```
As the feature is experimental it must be enabled with the
following command line
[option](https://nodejs.org/dist/latest-v8.x/docs/api/cli.html#cli_napi_modules):
```bash
--napi-modules
```
## Basic N-API Data Types
N-API exposes the following fundamental datatypes as abstractions that are