Similar to the very first option but omits the trailing delimiter

ls -1 | paste -sd "," -