Open iarna opened 9 years ago
I'd like to see https://github.com/npm/validate-npm-package-name/issues/1 addressed before we do the npm-registry-client changes, as I'd prefer to not change its semantics.
An attempt is here: https://github.com/npm/validate-npm-package-name/pull/2
Let's get this logic centralized. This'd replace
ensureValidName
. Things that usefixNameField
to validate names should probably be updated to usevalidate-npm-package-name
directly too. coughnpm-registry-client
cough