mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
- Fix typo "THis" → "This" in promise.rs documentation - Add pageSize option to NAPI version selection in CLI new command Before ```bash ? Minimum node-api version (with node version requirement) napi1 (>= 8.6.0 < 9 || >= 9.0.0 < 10 || >= 10.0.0) napi2 (>= 8.10.0 < 9 || >= 9.3.0 < 10 || >= 10.0.0) ❯ napi3 (>= 6.14.2 < 7 || >= 8.11.2 < 9 || >= 9.11.0 < 10 || >= 10.0.0) napi4 (>= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0) napi5 (>= 10.17.0 < 11 || >= 12.11.0 < 13 || >= 13.0.0) napi6 (>= 10.20.0 < 11 || >= 12.17.0 < 13 || >= 14.0.0) napi7 (>= 10.23.0 < 11 || >= 12.19.0 < 13 || >= 14.12.0 < 15 || >= 15.0.0) ``` After ```bash ? Minimum node-api version (with node version requirement) napi1 (>= 8.6.0 < 9 || >= 9.0.0 < 10 || >= 10.0.0) napi2 (>= 8.10.0 < 9 || >= 9.3.0 < 10 || >= 10.0.0) ❯ napi3 (>= 6.14.2 < 7 || >= 8.11.2 < 9 || >= 9.11.0 < 10 || >= 10.0.0) napi4 (>= 10.16.0 < 11 || >= 11.8.0 < 12 || >= 12.0.0) napi5 (>= 10.17.0 < 11 || >= 12.11.0 < 13 || >= 13.0.0) napi6 (>= 10.20.0 < 11 || >= 12.17.0 < 13 || >= 14.0.0) napi7 (>= 10.23.0 < 11 || >= 12.19.0 < 13 || >= 14.12.0 < 15 || >= 15.0.0) napi8 (>= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0) ``` 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
@napi-rs/cli
Cli tools for napi-rs
# or npm, pnpm
yarn add @napi-rs/cli -D
yarn napi build
Commands
| Command | desc | docs |
|---|---|---|
| new | create new napi-rs project | ./docs/new.md |
| build | build napi-rs project | ./docs/build.md |
| create-npm-dirs | Create npm package dirs for different platforms | ./docs/create-npm-dirs |
| artifacts | Copy artifacts from Github Actions into specified dir | ./docs/artifacts.md |
| rename | Rename the napi-rs project | ./docs/rename.md |
| universalize | Combile built binaries into one universal binary | ./docs/universalize.md |
| version | Update version in created npm packages by create-npm-dirs |
./docs/version.md |
| pre-publish | Update package.json and copy addons into per platform packages | ./docs/pre-publish.md |
Debug mode
DEBUG="napi:*" napi [command]