I have a directory that looks like this:
-- app/
|- models/
|- user.js
|- config.json
I want my user.js
file to require config.json
. Right now I'm using require('/config')
but this is not working. What am I doing wrong? I'd like to avoid using require('../config')
.