unpkg/modules/utils/isValidPackageName.js

6 lines
186 B
JavaScript
Raw Normal View History

2019-01-06 00:50:05 +00:00
import validateNpmPackageName from 'validate-npm-package-name';
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;
}