I like the first one, I didn't realise you could do that.

Isn't the update in the second example redundant? require automatically pulls down and installs the package.