Flashlight plugin with sample app to test the cordova plugin integration.
Simple example on how to build a plugin.
As presented in NextStep Lisbon - Hardcore Mobile Integrations