I've done lots of googling and can't seem to find an answer and this seemed like the best place to ask as there are lots of electrical savvy people here.
I've got a tray ceiling that has bare 12/2 wire run up to it but no electrical outlet/receptacle to plug in some lights. Unfortunately the space is too small for me to install a receptacle. Thus would it be better to hardwire in some LED lights or would wiring something like this be an option as it would give me a plug:
https://www.homedepot.com/p/Leviton...PIPHorizontal1_rr-_-205165516-_-205330456-_-N
I've got a tray ceiling that has bare 12/2 wire run up to it but no electrical outlet/receptacle to plug in some lights. Unfortunately the space is too small for me to install a receptacle. Thus would it be better to hardwire in some LED lights or would wiring something like this be an option as it would give me a plug:
https://www.homedepot.com/p/Leviton...PIPHorizontal1_rr-_-205165516-_-205330456-_-N