title: specific directory path using slash or dot slash (/ or ../) in Nodejs
body: <p>Ok, this is very simple but I can't seem to figure it out. </p>
  
  <p>I'm currently in (auth -> routes -> users.js) and I want to require a file from a directory in the root (routes -> index.js) </p>
  
  <p>Obviously '...' is not how you do it. The flow of the directories is attached below the code. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//authentication
  var express = require('express');
  var router = express.Router();
  var userdata = require('../controllers/users');
  var User = require('../models/users');
  
  //require to lock routes from index.js 
  require('.../routes/index.js');</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/mld05.png" rel="nofollow noreferrer">directory</a></p>