Skip to content

Instantly share code, notes, and snippets.

@janniks
Created April 22, 2020 10:12
Show Gist options
  • Save janniks/f2c2eb49edfebce7d9f3e77ef7e0a1f4 to your computer and use it in GitHub Desktop.
Save janniks/f2c2eb49edfebce7d9f3e77ef7e0a1f4 to your computer and use it in GitHub Desktop.
04 - A Better Way to Import Local Node.js Modules - An Article
const randomRelative = require('../../../../../somewhere/deep/and/random')
// Using 'basetag' becomes...
const randomBasetag = require('$/somewhere/deep/and/random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment