Coder Social home page Coder Social logo

springmeyer / node-addon-example Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 18.0 17 KB

Sample starter application for a Node C++ addon packaged with node-pre-gyp

License: BSD 2-Clause "Simplified" License

C++ 28.41% Python 47.62% JavaScript 23.96%

node-addon-example's Introduction

node-addon-example

Build Status

Sample application of a Node C++ addon packaged with node-pre-gyp.

If you are interested in learning how to write C++ addons see the official guide.

This repo is intended as starter code for your own C++ module - feel free to copy and modify. The docs below are meant to be a template for how you might document your module once packaged with node-pre-gyp.

Depends

  • Node.js 0.10.x, 0.12.x, 4, or 5

Install

Install from binary:

npm install

Install from source:

npm install --build-from-source

Developing

The node-pre-gyp tool is used to handle building from source and packaging.

Simply run:

./node_modules/.bin/node-pre-gyp build

Packaging

./node_modules/.bin/node-pre-gyp build package

Publishing

./node_modules/.bin/node-pre-gyp publish

node-addon-example's People

Contributors

springmeyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-addon-example's Issues

Example is realy stale

I think that the sample originally was useful, but in its current state it mostly shows errors

so it may achieve to opposite of the original intent ..

C:\develop\node\node-addon-example>npm install
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.

> [email protected] install C:\develop\node\node-addon-example
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-pre-gyp-tests.s3-us-west-1.amazonaws.com/node_addon_example/v0.1.5/Release/node_addon_example-v0.1.5-node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp-tests.s3-us-west-1.amazonaws.com/node_addon_example/v0.1.5/Release/node_addon_example-v0.1.5-node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
gypgyp  ERR!ERR!  configure errorconfigure error 

gyp ERR! stack Error: Command failed: C:\Users\user\AppData\Local\Programs\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gypgyp  ERR!ERR!  stackstack   File "<string>", line 1
 Error: Command failed: C:\Users\josverl\AppData\Local\Programs\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp gypERR! ERR!  stack     import sys; print "%s.%s.%s" % sys.version_info[:3];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.