validate-npm-package-name

Give me a string and I'll tell you if it's a valid npm package name

Browse on unpkg