v4.0.3
Provides a regex that can be used to test if a string is a valid NPM package name.
Source code on GitHub