nodebb-plugin-require
Easily require NodeBB/src modules from within any plugin when running that as a stand-alone script
Usage
// from within other plugins var nodebbRequire = ; // to require the /path/to/NodeBB/src/filevar File = ; // you can also print out the full filepathconsole;// prints /path/to/NodeBB
other functions
You can these 2 for ther other packages as well, not just nodebb
nodebbRequire.isPackageDirectory(name, dir)
nodebbRequire; // true/false
nodebbRequire.findPackageDirectory(name, startDir)
nodebbRequire.findPackageDirectory('lodash', 'path/to/somwhere/dark/and/scary');