2019-01-06 00:50:05 +00:00
|
|
|
import validateNpmPackageName from 'validate-npm-package-name';
|
2017-11-15 00:44:53 +00:00
|
|
|
|
2019-01-06 00:50:05 +00:00
|
|
|
export default function isValidPackageName(packageName) {
|
2018-02-18 02:00:56 +00:00
|
|
|
return validateNpmPackageName(packageName).errors == null;
|
2017-11-15 00:44:53 +00:00
|
|
|
}
|