node-gyp-hw
v1.1.21
Published
A simple Node.js native addon example
Downloads
4,524
Readme
node-gyp-hw
A simple Node.js native addon example that returns "Hello World".
Build
npm i
Installation
npm install node-gyp-hw
Usage
// 引入包
const hw = require('node-gyp-hw');
// 调用 hello 方法
console.log(helloWorld.hello()); // 输出: Hello World
Requirements
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 publish
License
MIT