Skip to content

Instantly share code, notes, and snippets.

@MichaelBorde
Created December 15, 2016 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelBorde/b068136edbad0b43a56024248d3802f2 to your computer and use it in GitHub Desktop.
Save MichaelBorde/b068136edbad0b43a56024248d3802f2 to your computer and use it in GitHub Desktop.
// ok
const module = require('./module') // perfect
const module = require('./folder/module') // nice
const module = require('./a/b/c/d/module') // ... why not
// ko
const module = require('../module') // no thx
const module = require('../folder/module') // weird
const module = require('../../../../../../../a/b/c/d/module') // oh really ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment