This repository has been archived by the owner. It is now read-only.

Support startup of embedded node better #733

wants to merge 1 commit into


None yet
4 participants

This patch adds a callback to the node::Start and node::Load function to allow an embedding module to add things to the global scope.

Node's great to attach libraries to, where the node binary is the entry point -- not quite so smooth embedding libnode into an existing app. This helps.

Add a startup callback in C
Allows a startup callback to be called to set up an embedded environment
with additional bindings.

deanm commented Mar 16, 2011

I have a similar patch out, would it solve your use case? Basically you would write your own Start() with the new exported functions:


Non-relevant. Load function has changed too much since submission of this pull request.

@bnoordhuis bnoordhuis closed this Nov 20, 2012

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.