node-addon-layer
C API For writing Node modules
|
A common pattern is to write a binding to a library that intializes and returns a handle that is used for all subsequent library operations. Similarly you will want to know when it is necessary to clean up the underlying resources (without necessarily being explicit in JavaScript).