npm / normalize-package-data

normalizes package metadata, typically found in package.json file.
Other
195 stars 48 forks source link

[FEATURE] Use validate-npm-package-name to validate package names #54

Open iarna opened 9 years ago

iarna commented 9 years ago

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

othiym23 commented 9 years ago

We should definitely do this!

cough npm-registry-client cough

📝 an issue plzthxomgbbq!

iarna commented 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.

zeke commented 9 years ago

An attempt is here: https://github.com/npm/validate-npm-package-name/pull/2