Cook the peas in a large saucepan of well-salted boiling water for 1½-2 minutes, until tender (less time if using frozen peas). Remove from the water and drain.
Heat the butter in a large skillet over medium heat, then add the shallots and cook, stirring constantly, for 2-3 minutes.
Add the cooked/drained peas to the butter and shallots, mixing well to coat them, and season with sea salt and freshly cracked pepper, to taste.