Added uninstall functionality to the API and CLI.
In order to do this safely, I moved the installation of the packages to a dedicated niv_modules folder instead of a node_modules folder. This gives us the freedom to handle overwrites en deletions without worrying over the already installed node_modules.
Added require API (since the modules are now located in "niv_modules")
Made the install functionality async when using the API. This gives greater flexibility in my opinion.
Fixed a bug where new published versions where not picked up because of cache. (see utils getPackageName function)
I am aware that I took some liberties by moving the install folder and by making the install functionality async. Feedback about this is definitely welcome.
This PR contains the following enhancements:
I am aware that I took some liberties by moving the install folder and by making the install functionality async. Feedback about this is definitely welcome.
It also fixes #34