Skip to content

Simple script to add the excellent neon-bindings to an existing node.js app

Notifications You must be signed in to change notification settings

benjcal/neon-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

neon-init

Simple script to add neon rust bindings to an existing node app

Installation

curl https://raw.githubusercontent.com/benjcal/neon-init/master/neon-init.sh -s | bash

warning: Right now the script is a little aggresive, it creates native/ on the root of the application and modifies package.json without asking.

Usage

The Rust source code is at native/src/lib.rs

Run npm run neon-build to compile the Rust scource code

Sample JS file:

const addon = require('./native')

console.log(addon.hello())

The script is simple and there's not a lot of things that can go wrong, but still use this under your own responsability and always git commit before!

Enjoy! 😃

Neon Documentation

Rust Documentation

Node Documentation

About

Simple script to add the excellent neon-bindings to an existing node.js app

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published