star-collector / generator-native-addon

Humble native addon generator for Yeoman. Allows to generate a native addon using Nan or without it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Humble native addon generator for Yeoman. Allows to generate a native addon using Nan or without it.

License:MIT License


Languages

Language:JavaScript 60.9%Language:C++ 29.4%Language:Python 9.7%