An open API service indexing awesome lists of open source software.

https://github.com/shihabmridha/nodejs-cpp-addon-exp

Experiment on NodeJS C/C++ addon (N-API)
https://github.com/shihabmridha/nodejs-cpp-addon-exp

cpp nodejs nodejs-napi

Last synced: 11 months ago
JSON representation

Experiment on NodeJS C/C++ addon (N-API)

Awesome Lists containing this project

README

          

## NodeJS C++ Addon with N-API (Experiment)
### Target:
- Parse a JSON file using [simdjson](https://github.com/simdjson/simdjson/).
- Pass key of JSON field to retrive the value and a callback.
- Pass the retrived value from C++ to JavaScript as an argument of given callback.

### Test:
```
addon.test('key', (value) => {
console.log(value); // should print the value retrived from json file
});
```