node-addon-api icon indicating copy to clipboard operation
node-addon-api copied to clipboard

Module for using Node-API from C++

Results 80 node-addon-api issues
Sort by recently updated
recently updated
newest added

| class | methods | |-------------------------|----------------------------------------------------------------------------------------------------------------------------------| | RangeError | RangeError::New(Napi::Env env, const char * message) | |Covered #52 |RangeError::New(Napi::Env env, const std::string &message) | | |RangeError() | | |RangeError(napi_env env,...

test
good first issue
never-stale

| class | methods | |-------------------------|----------------------------------------------------------------------------------------------------------------------------------| | TypeError | TypeError() | | | TypeError(napi_env env, napi_value value) | | | static TypeError New(napi_env env, const char* message); | |Covered #24...

test
good first issue
never-stale

| class | methods | |-------------------------|----------------------------------------------------------------------------------------------------------------------------------| | TypedArrayOf | TypedArrayOf() | | | TypedArrayOf(napi_env env, napi_value value) | | | Napi::TypedArrayOf::New(napi_env env, size_t elementLength, napi_typedarray_type type) | | |Napi::TypedArarayOf::New(napi_env env,...

test
good first issue
never-stale

| class | methods | |-------------------------|----------------------------------------------------------------------------------------------------------------------------------| | Covered (#621) | static Error New(Napi::Env env) | | |Napi::Error() | | |Napi::Error(napi_env env, napi_value value) | | | Error::New(Napi::Env env, const char...

test
good first issue
never-stale

| class | methods | |-------------------------|----------------------------------------------------------------------------------------------------------------------------------| | AsyncWorker | AsyncWorker(AsyncWorker&& other) | | | AsyncWorker& operator =(AsyncWorker&& other) | | | AsyncWorker(const AsyncWorker&) | | | AsyncWorker& operator =(AsyncWorker&) |...

test
never-stale

Add code coverage for node-addon-api, ideally run for every PR. Could re-use same approach as for Node.js core which is in the Makefile - https://github.com/nodejs/node/blob/68c4b8d56d653a77747648b933618ade63bf2007/Makefile#L227

never-stale

This line: https://github.com/nodejs/node-addon-api/blob/da2e754a021e418a3ca36f3c10ea134c9541959f/napi.h#L1075 causes a warning with `-Wconversion` enabled: ``` warning: the result of the conversion is unspecified because ‘-1’ is outside the range of type ‘napi_typedarray_type’ [-Wconversion] 911 |...

Could we change ```cpp inline Object::PropertyLValue Object::operator[]( const char* utf8name) const { return PropertyLValue(*this, utf8name); } ``` to ```cpp inline Object::PropertyLValue Object::operator[]( const char* utf8name) const { return PropertyLValue(*this, utf8name);...

stale

From the `napi-inl.h` header file: - `NODE_API_MODULE()` registers an add-on based on an initializer function. - `NODE_API_ADDON()` registers add-on based on a subclass of `Addon`. The examples in [node-addon-examples](https://github.com/nodejs/node-addon-examples) all...

I have attached an MVCE here: [napi-mvce.zip](https://github.com/nodejs/node-addon-api/files/7911184/napi-mvce.zip) To run, `yarn && yarn run build:debug && node ./index.js`. The relevant code snippet is: ```javascript function processEvent(data) { console.log('Process event data', data);...

stale