Hexaware Technologies interview question

What is a middleware in node js?