adverb, expression
as you please; in any way you like; as you wish
Set phrase meaning 'do whatever you want with it', often with a nuance of leaving the decision or handling entirely to someone else. Literally 'whether you boil it or grill it'.
この資料はもういらないから、煮るなり焼くなり好きにして。
I don't need these documents anymore, so do whatever you like with them.
彼に煮るなり焼くなり任せておけば大丈夫だ。
Just leave it to him to handle as he sees fit; it'll be fine.