Make a NPM package name safe to be used as a JavaScript variable name. Works well as a mixin in Yeoman generators.