The libSBML JavaScript interface is currently only designed to be used with Node.js. After you have installed libSBML on your system, you may need to perform one more step to enable you and your users to access libSBML from Node.js: inform Node.js where to find the libSBML module. One approach to doing this is to set the NODE_PATH environment variable to the location of where the libSBML module is installed. The value of NODE_PATH depends on the installation directory used during the libSBML configuration step. If you built libSBML yourself using CMake, the path is /lib/node appended to the value used for the CMAKE_INSTALL_PREFIX configuration variable. If you built libSBML using GNU make, the path is DIR/lib/node, where DIR is the value used for the configuration option --prefix=DIR. Once the NODE_PATH environment variable is set, Node.js should be able to access the libSBML module very simply as in the following example:

var sbml = require('sbml')

Alternatively, if setting the environment variable NODE_PATH is inconvenient, you can supply a full path to the Node require statement to load the libSBML module:

var sbml = require('/usr/local/lib/node/sbml')