I am quite new to node_moduels.
For instance, say you have this structure:
The app directory
- your_app/node_modules/your_module
your_app/app.js
The module directoryyour_module/index.js
- lib/a_file_you_require_in_index.js
When you require the file inside the index.js. How do you make sure the path is correct, when the code is executed inside the app.js file, where the module is required?
your_module is a npm module