goload
v0.0.0
Published
auto-loads node modules marked as managed folders
Downloads
2
Readme
goload
auto-loads node modules marked as managed folders
Getting Strated
goload requires confyg which is a node package that reads configurations from a config folder in your projects root directory. you can install it by running npm i confyg. once installed follow the below steps:
- create a file at: your-project/config/default.yaml
autoload:
- controllers
- router
- npm i goload
- then autoload file like in the example below:
const autoloader = require('goload')
const { router } = autoloader()
const allModules = autoloader()