generator-native-addon
v2.0.0
Published
Humble Native addon generator for Yeoman.
Downloads
13
Maintainers
Readme
generator-native-addon
Humble native addon generator for Yeoman. Allows to generate a native Node.js addon using N-API, Nan or without them.
Installation
$ npm install -g generator-native-addon
Usage
$ yo native-addon
Structure
Generated project has the following structure:
.
├── ./binding.gyp # Compilation settings
├── ./example.js # Example file showing your addon's functionality.
├── ./index.js # This file exports your addon.
├── ./package.json
├── ./README.md
└── ./src # C or C++ source code from which your native addon will be generated.
└── ./src/[name].cpp