I looked for a very long time on how to access the iPhone’s camera LED flash to use as a flashlight. It took a while, but finally I came across the PhoneGap plugin called Torch. Really, the problem was I was just searching for the wrong terms in Google. Who would have guessed it was called Torch?!
Anyhow, Torch is loaded like any other PhoneGap plugin, and was one the easiest to setup once I figured out where it was.