Can this entire module be made into an npm module, or better yet, check whether some other person has written something similar?