The Ender Spectacles can be crafted with a little Gold, Ender Pearls and a some Tanned Leather. When wearing spectacles, you can see where monsters can spawn due to the light level, indicated by swirls:
These goggles also stop Endermen from teleporting to you to attack. Instead, they will teleport away in fear. This still means you can run up to them and kill them. It does not scare them away completely.