Skip to content

gongfan99/node_napi_promise_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node_napi_promise_example

An node extension example with napi for promise

Introduction

This is a simple example for node native extension with napi. It asynchronously multiplies two numbers and outputs the result.

This is to give everybody a starting point to work on because I could not find a complete example for promise implementation with napi.

It has been tested on my Win7 local machine.

Working environment:

  • node v8.9.3

To install:

npm install

To run test:

node test/test.js

Userful links:

About

An node extension example with napi for promise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published