module-alias
module-alias copied to clipboard
Retrieve Alias Path
Change
Added a method that will take a alias as a string, validate that it exists in the moduleAliase's object. and that it is of type string. This will then return the relevant path for that alias.
Reason
We came across the need in our express/typescript environment to create dynamic imports as well as fs read processes. These file paths are not imported and change depending on the environment. This will you to use the registered aliases outside of a import or require.
I would love to see this merged. I used it to debug and it worked great.
I would love to see this merged too. Any update on this?
On a note I think the travis linting is going to cause more issues than good. As we are running different IDE styleguides. It may be beneficial for you to run your proffered settings over the project
@lukeinthecloud, The time has passed and nothing changed. I think in that case is easier create another module called reverse-module-alias and make reverse alias/realpath conversions. :)