Skip to content

Commit 5543c01

Browse files
Nicola Del Gobbomhdawson
authored andcommitted
doc: add more content to documentation
PR-URL: #192 Reviewed-By: Michael Dawson <[email protected]>
1 parent 74de0cb commit 5543c01

33 files changed

+286
-11
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ values. Concepts and operations generally map to ideas specified in the
2626
- **[Examples](#examples)**
2727
- **[Tests](#tests)**
2828
- **[More resource and info about native Addons](#resources)**
29+
- **[Code of Conduct](CODE_OF_CONDUCT.md)**
2930
- **[Contributors](#contributors)**
3031
- **[License](#license)**
3132

32-
## **Current version: 1.0.0**
33+
## **Current version: 1.1.0**
3334

3435
(See [CHANHELOG.md](CHANGELOG.md) for complete Changelog)
3536

@@ -84,13 +85,29 @@ values. Concepts and operations generally map to ideas specified in the
8485

8586
### **Examples**
8687

87-
//TODO References to examples
88+
Are you new to **N-API**? Take a look at our **[examples](https://github.com/nodejs/abi-stable-node-addon-examples)**
89+
90+
- **[Hello World](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/1_hello_world/node-addon-api)**
91+
- **[Pass arguments to a function](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/2_function_arguments/node-addon-api)**
92+
- **[Callbacks](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/3_callbacks/node-addon-api)**
93+
- **[Object factory](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/4_object_factory/node-addon-api)**
94+
- **[Function factory](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/4_object_factory/node-addon-api)**
95+
- **[Wrapping C++ Object](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/6_object_wrap/node-addon-api)**
96+
- **[Factory of wrapped object](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/7_factory_wrap/node-addon-api)**
97+
- **[Passing wrapped object around](https://github.com/nodejs/abi-stable-node-addon-examples/tree/master/8_passing_wrapped/node-addon-api)**
8898

8999
<a name="tests"></a>
90100

91101
### **Tests**
92102

93-
//TODO References to tests
103+
To run the **N-API** tests do:
104+
105+
```
106+
npm install
107+
npm test
108+
```
109+
110+
Take a look and get inspired by our **[test suite](https://github.com/nodejs/node-addon-api/tree/master/test)**
94111

95112
<a name="resources"></a>
96113

doc/array.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Array
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/array_buffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Array buffer
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/async_operations.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Asynchronous operations
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/async_worker.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Async worker
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/basic_types.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Basic Types
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/boolean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Boolean
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/buffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Buffer
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/class_property_descriptor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Class propertry and descriptior
2+
3+
You are reading a draft of the next documentation and it's in continuos update so
4+
if you don't find what you need please refer to:
5+
[C++ wrapper classes for the ABI-stable C APIs for Node.js](https://nodejs.github.io/node-addon-api/)

doc/cmake-js.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# CMake.js
2+
3+
**CMake.js** is a build tool that allow native addon developer to compile their
4+
C++ code into executable form. It works like **[node-gyp](node-gyp.md)** but
5+
instead of Google's **gyp** format it is base on **CMake** build system.
6+
7+
## **CMake** reference
8+
9+
- [Installation](https://www.npmjs.com/package/cmake-js#installation)
10+
- [How to use](https://www.npmjs.com/package/cmake-js#usage)
11+
- [Tutorials](https://www.npmjs.com/package/cmake-js#tutorials)
12+
- [Use case in the works - ArrayFire.js](https://www.npmjs.com/package/cmake-js#use-case-in-the-works---arrayfirejs)
13+
14+
Sometimes finding the right settings is not easy so to accomplish at most
15+
complicated task please refer to:
16+
17+
- [CMake documentation](https://cmake.org/)
18+
- [CMake.js wiki](https://github.com/cmake-js/cmake-js/wiki)

0 commit comments

Comments
 (0)