You can use curl:

curl -o- <https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh> | bash

Or you can use wget:

wget -qO- <https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh> | bash