I used npm node-persist but I wish to use it in two modules as well, 'set()' and 'get()'
var storage=require('node-persist'), set=require('./set.js'), get=require('./get.js'); storage.initSync();
set(foo, bar, storage);
my problem is the package does not seem to work when passed. Is there a way to pass a npm package such as node-persist? Am I suppose to 'require' the package in each module of the project?