unpkg/server/utils/isValidPackageName.js

8 lines
214 B
JavaScript

const validateNpmPackageName = require("validate-npm-package-name");
function isValidPackageName(packageName) {
return validateNpmPackageName(packageName).errors == null;
}
module.exports = isValidPackageName;