TIL: NVM Config File

I'm working on a project that uses a specific node version. I can do better than typing nvm use 5.9 every time I'm on the project folder. I can do this once in the project folder:

nvm use 5.9
node -v > .npmrc

Now, whenever I move to the project folder I just use nvm use without specifying the language, which outputs:

Found '/home/marcelo/my-project/.nvmrc' with version <v5.9.0>

It's possible to go further and integrate with the shell so that it's not even necessary to call nvm use manually. To read more about how to configure that read the official nvm's documentation. The instructions differ depending on the shell.