With expansion accelerating at Care.com Inc., in-house counsel at the caregiver-­services company have helped ensure it’s a smooth ride.

The four-lawyer legal department, led by general counsel Diane Musi, during the past two years has guided the Waltham, Mass.-based business through a host of acquisitions and its initial public offering, which occurred in January.