made it npm compatible