generator-native-addon

2.0.0 • Public • Published

generator-native-addon

alt tag

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
 

Package Sidebar

Install

npm i generator-native-addon

Weekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • star-collector