Skip to content

kon72/rules_node_binding

Repository files navigation

Bazel Rules for Node.js Native Addons

Overview

This repository contains rules for building Node.js Native Addons with Bazel build system.

See examples for more details.

Installation

See Release Notes for installation instructions.

FAQ

How do I change Node-API version to build an addon against?

You can set it by the command line flag:

bazel build //my/node/extension:target --@rules_node_binding//node_binding:napi_version=3

Can I use Node.js/V8/libuv API which is not part of Node-API?

Currently, no. Feel free to open an issue if you need it.