Adjust readme

This commit is contained in:
Luis Blanco 2022-09-24 19:11:40 +04:00
parent 847a68a2d2
commit f9fe9f0124
4 changed files with 24 additions and 22 deletions

View File

@ -9,15 +9,12 @@ This is a part of [Node3D](https://github.com/node-3d) project.
npm i addon-tools-raub
```
## Synopsis
This module contains numerous helpers for Node.js **NAPI**
addons and dependency packages. On this page, helper scripts
are described. For details on **addon-tools.hpp** and some
additional snippets follow the links below.
**Go to**:
**Docs**:
* [include/addon-tools.hpp](doc/addon-tools.md)
@ -32,6 +29,8 @@ additional snippets follow the links below.
## index.js
> NOTE: peer dependency `node-addon-api` is required for this helper.
Main exports for cross-platform addon configuration.
See [TypeScript definitions](/index.d.ts) with comments.
@ -50,6 +49,8 @@ See [TypeScript definitions](/cpbin.d.ts) with comments.
## install.js
> NOTE: peer dependency `adm-zip` is required for this helper.
Downloads and unzips the platform specific binary for the calling package.
See [TypeScript definitions](/install.d.ts) with comments.

View File

@ -7,6 +7,7 @@ put the file **binding.gyp** to the module root anymore. It is better to have a
separate folder with a separate **package.json**, **binding.gyp** and the sources.
A snippet for **src/package.json**:
```
{
"name": "build",

18
package-lock.json generated
View File

@ -9,21 +9,21 @@
"version": "6.0.0",
"license": "MIT",
"devDependencies": {
"adm-zip": "~0.5.9",
"eslint": "~8.24.0",
"eslint-plugin-jest": "~27.0.4",
"eslint-plugin-node": "~11.1.0",
"jest": "~29.0.3",
"node-addon-api": "~5.0.0",
"typescript": "~4.8.3"
"adm-zip": "^0.5.9",
"eslint": "^8.24.0",
"eslint-plugin-jest": "^27.0.4",
"eslint-plugin-node": "^11.1.0",
"jest": "^29.0.3",
"node-addon-api": "^5.0.0",
"typescript": "^4.8.3"
},
"engines": {
"node": ">=16.17.0",
"npm": ">=8.15.0"
},
"peerDependencies": {
"adm-zip": "~0.5.9",
"node-addon-api": "~5.0.0"
"adm-zip": "^0.5.9",
"node-addon-api": "^5.0.0"
}
},
"node_modules/@ampproject/remapping": {

View File

@ -67,16 +67,16 @@
"url": "https://github.com/node-3d/addon-tools-raub.git"
},
"peerDependencies": {
"adm-zip": "~0.5.9",
"node-addon-api": "~5.0.0"
"adm-zip": "^0.5.9",
"node-addon-api": "^5.0.0"
},
"devDependencies": {
"adm-zip": "~0.5.9",
"eslint-plugin-jest": "~27.0.4",
"eslint-plugin-node": "~11.1.0",
"eslint": "~8.24.0",
"jest": "~29.0.3",
"node-addon-api": "~5.0.0",
"typescript": "~4.8.3"
"adm-zip": "^0.5.9",
"eslint-plugin-jest": "^27.0.4",
"eslint-plugin-node": "^11.1.0",
"eslint": "^8.24.0",
"jest": "^29.0.3",
"node-addon-api": "^5.0.0",
"typescript": "^4.8.3"
}
}