Transform CMD module to CommonJS