If you don't want to recompile it every time, you could just use better-require module: https://github.com/olalonde/better-require