Last updated 182 days ago by Arun Michael Dsouzanodejs
Typing out long and error-prone paths to your Node JS modules can be a daunting task!
Even with code-completion features like IntelliSense in place (which is supported by almost every IDE or text editor), this can become more challenging as your codebase grows.
Just imagine changing the directory structure of your project and you're forced to change all occurrences of the modules currently being referenced multiple times throughout your project. It's a maintenance nightmare!
Moreover, it looks damn ugly!
An alias to a module path clearly indicates the location and purpose of the module being used. Dots and slashes hardly tell anything!