From a recipe on alexandracooks.com
Coarse salt and ground pepper 2 tablespoon olive oil 1 onion, peeled and thinly sliced pinch red pepper flakes 1 bunch greens, stems removed, leaves chopped, then soaked in water to allow dirt to settle 1/2 to 3/4 pound bucatini, linguini, or pappardelle 2 large eggs 1/4 cup grated Parmigiano Reggiano, plus more for serving 1 tablespoon fresh lemon juice plus more to taste
Set a large pot of salted water to boil. In a large skillet, heat the 2 tablespoons of olive oil over medium-high heat. When it shimmers, add the onion, immediately turn the heat down to medium, season with a pinch of kosher salt, and sauté stirring occasionally, until soft and just turning to color, 7 to 10 minutes. Meanwhile, lift the greens out of the water and put them in a colander to drain—it’s OK if some of the water clings to the greens.
Add a pinch of red pepper flakes to the onions and stir for 30 seconds. Add all of the greens. Cook over medium to medium-high heat until greens shrink way down—use tongs to flip the greens around and help them wilt. Season with a pinch of salt. Turn off the heat.
Add pasta to boiling water and cook according to package instructions. Reserve ½ cup (or more) of the pasta cooking liquid. In a medium bowl or liquid measure, whisk together eggs, parmesan, and juice. Whisk ¼ cup pasta water into egg mixture.
Drain pasta and immediately add to the pan with the onions and greens. Pour egg mixture into pan and toss with tongs to combine, turning heat to low or medium if greens have cooled way down. Season with salt and pepper to taste. Taste. Add more lemon or more of the reserved pasta cooking liquid to taste. Sprinkle pasta with more cheese if desired and serve immediately.