I constantly need to switch between multiple computers at work, and I want to sync my globally installed npm packages as a dotfiles to make it portable.
Where can I find such a file that can represent all my globally installed npm packages and I can easily use it to install again in different computer?
Edit
I forgot to mention that I want to put my dotfiles that has the information of all my installed packages on Git.