Example on how to use a native add-on based on N-API that does its work asynchronously and returns a Promise. Simply compile the native add-on with node-gyp: npm run build And see how it in action: node .