normalize-package-data
normalize-package-data copied to clipboard
[FEATURE] Use validate-npm-package-name to validate package names
trafficstars
Let's get this logic centralized. This'd replace ensureValidName. Things that use fixNameField to validate names should probably be updated to use validate-npm-package-name directly too. cough npm-registry-client cough
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