Universal modules (browser, Node.js): imports and universal tests Update 2011-11-19. This post is now superseded by “Bridging the module gap between Node.js and browsers”. This post explains how to write modules that are universal – they run on browsers and Node.js. A previous post showed a simple way of doing so, this post presents a more sophisticated solution that also handles modules importing