node-gyp-hw
Version:
A simple Node.js native addon example
56 lines (38 loc) • 744 B
Markdown
# node-gyp-hw
A simple Node.js native addon example that returns "Hello World".
## Build
```bash
npm i
```
## Installation
```bash
npm install node-gyp-hw
```
## Usage
```javascript
// 引入包
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:
```bash
git clone https://github.com/pigcanflyqaq/node-gyp-hw.git
cd node-gyp-hw
npm install node-addon-api
npm i
```
### Publish
```bash
npm publish
```
## License
MIT
#