Skip to content

shihabmridha/nodejs-cpp-addon-exp

Repository files navigation

NodeJS C++ Addon with N-API (Experiment)

Target:

  • Parse a JSON file using 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
});

About

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

Topics

Resources

Stars

Watchers

Forks

Languages