node-gyp-hw
v1.1.21
Published
A simple Node.js native addon example
Readme
node-gyp-hw
A simple Node.js native addon example that returns "Hello World".
Build
npm iInstallation
npm install node-gyp-hwUsage
// 引入包
const hw = require('node-gyp-hw');
// 调用 hello 方法
console.log(helloWorld.hello()); // 输出: Hello WorldRequirements
This package requires proper build tools to be installed on your system:
- GCC/G++
- Python>=3.12.x
macOS
- Xcode Command Line Tools (
xcode-select --install)
Development
If you want to build this package from source:
git clone https://github.com/pigcanflyqaq/node-gyp-hw.git
cd node-gyp-hw
npm install node-addon-api
npm i Publish
npm publishLicense
MIT
