LED control when using different power source

Thanks.
What type of transistor would I need ?
Something like this NPN 2N3904 from Sparkfun?