Heat oil in a deep skillet over medium heat.
Place onions and garlic into skillet until lightly browned, about 3 minutes.
Place escarole, salt and pepper into the pan. If the pan looks like it's going to overflow, don't worry; allow the escarole to wilt slightly and then add more.
When escarole has wilted, add beans and stock. cook until everything is heated through.
Serve immediately over pasta. Top with parmesan or preferred cheese.