okay I see depends on cordova / hardware layer.
https://www.npmjs.com/package/cordova-plugin-flashlight
But do you have any idea how to add a plugin?
I already see that interesting post:
I guess that would be the right thing to integrate it via CLI: