Melt the butter in a large saucepan with a lid.
Add the shallots, cooking until just starting to brown, about 5 minutes. Stir in the garlic and the red pepper.
Stir in the beer, bring to a simmer over medium heat. Add the clams, cover and cook until most of the clams have opened, about 6 minutes. Discard any clams that have not opened.
If using dried pasta, cook until just before al dente, about 6 minutes. Add to the clam pan, stirring until combined, cover and cook until cooked through.
If using fresh pasta, add the pasta directly into the clam pan without par cooking, cover and cook until pasta is cooked, about 4 minutes.
Plate the pasta, sprinkle with parsley.