You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
That was never a valid package name, so you get this:
{validForNewPackages:false,validForOldPackages:false,errors:['name cannot contain leading or trailing spaces','name can only contain URL-friendly characters']}
Legacy Names
In the old days of npm, package names were wild. They could have capitalletters in them. They could be really long. They could be the name of anexisting module in node core.
If you give this function a package name thatused to be valid, you'll seea change in the value ofvalidForNewPackages property, and a warnings arraywill be present:
{validForNewPackages:false,validForOldPackages:true,warnings:["name can no longer contain capital letters","name can no longer contain more than 214 characters"]}
Tests
npm installnpmtest
License
ISC
About
Is the given string an acceptable npm package name?