globalifies an NPM module.