How do I get a csv or text file of all of my lights?

Is there a way to export my lights to a list. I would like to have a csv list of all of my lights.