Fixing edge case (if ~/.npmrc not existing)
Adding unit-tests and code coverage