UNPKG

waw

Version:

waw is a minimalistic Node.js framework that serves as a foundation for building various types of projects. The core framework itself contains almost no code—its functionality is driven entirely by the modules you choose to include, making it highly flexi

18 lines (13 loc) 405 B
#!/usr/bin/env node const waw = require(__dirname + '/waw.js'); waw.ready('modules installed', () => { for (var i = 0; i < waw.modules.length; i++) { if (!waw.modules[i].router) continue; const routers = waw.node_files(waw.modules[i].__root, waw.modules[i].router, true); waw.each(routers, router => { if( typeof router === 'function' ) { router(waw); } }); } });