My first file is run.sh another file is script.js
run.sh
mongo --username --password --authenticationDatabase --host --port script.js
script.js
require('../config/config');
console.log("came here");
But this is not working. i got error
uncaught exception: ReferenceError: require is not defined : @import.js:1:1