Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Add blurb to N-API recommending the use of badges #22801

Closed
wants to merge 7 commits into from
9 changes: 9 additions & 0 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ opt-in to access those APIs:
In this case the entire API surface, including any experimental APIs, will be
available to the module code.

### Badges
ddlan marked this conversation as resolved.
Show resolved Hide resolved
The use of badges is recommended to indicate the minimum version of N-API required for the module. This helps to determine which Node.js major versions are supported. The following badges are available:
ddlan marked this conversation as resolved.
Show resolved Hide resolved

![N-API v1 Badge](https://img.shields.io/badge/N--API-v1-green.svg)
![N-API v2 Badge](https://img.shields.io/badge/N--API-v2-green.svg)
![N-API v3 Badge](https://img.shields.io/badge/N--API-v3-green.svg)
![N-API Experimental Version Badge](https://img.shields.io/badge/N--API-experimental-orange.svg)


ddlan marked this conversation as resolved.
Show resolved Hide resolved
## N-API Version Matrix

| | 1 | 2 | 3 |
Expand Down