npm install --save @types/validate-npm-package-name Summary This package contains type definitions for validate-npm-package-name (https://github.com/npm/validate-npm-package-name). Details Files were exported f
validate-npm-package-name这个包相信大家都不陌生,存在于大多数CLI脚手架类工具中被使用。比如在create-react-app[1]中。 代码语言:javascript 代码运行次数:0 运行 AI代码解释 function checkAppName(appName) { const validationResult = validateProjectName(appName); // 根据validForNewPackages字段判断是否是合...
这个包相信大家都不陌生,存在于大多数CLI脚手架类工具中被使用。比如在create-react-app中。 https://github.com/facebook/create-react-app/blob/2d1829eaf6ff1308da00720fa9984620dd0fb296/packages/create-rea…
validate-npm-package-name 这个 npm 包的作用就是验证项目名称 (npm 包名) 是否合法,很多的 cli 工具都有使用。例如 vue-cli:https://github.com/vuejs/vue-cli/blob/HEAD/packages/@vue/cli/lib/create.js#L8 create-react-app:https://github.com/facebook/create-react-app/blob/04482a6c2c6639c19deb3...
validate-npm-package-name npm name package names validation ineedj •1.0.1•7 months ago•0dependents•MITpublished version1.0.1,7 months ago0dependentslicensed under $MIT 12 types-npm-validate-npm-package-name The type definition for https://github.com/npm/validate-npm-package-name ...
validate-npm-package-name 这个 npm 包的作用就是验证项目名称 (npm 包名) 是否合法,很多的 cli 工具都有使用。例如 vue-cli: https://github.com/vuejs/vue-cli/blob/HEAD/packages/@vue/cli/lib/create.js#L8 create-react-app: https://github.com/facebook/create-react-app/blob/04482a6c2c6639c19...
validate-npm-package-name 的作用就是为了检测 npm 包的名称是否符合标准的; 使用 var validate = require("validate-npm-package-name")console.log(validate("some-package"));console.log(validate("_some-package")); 源码 'use strict'var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/...
validate-npm-package-name 这个 npm 包的作用就是验证项目名称 (npm 包名) 是否合法,很多的 cli 工具都有使用。例如 vue-cli:https://github.com/vuejs/vue-... create-react-app:https://github.com/facebook/c... vue-cli 的用法如下 const result = validateProjectName(name) ...
npm/validate-npm-package-namePublic NotificationsYou must be signed in to change notification settings Fork46 Star300 main 1Branch15Tags Code Folders and files Name Last commit message Last commit date Latest commit Cannot retrieve latest commit at this time. ...
validate-npm-package-name now supports node ^18.17.0 || >=20.5.0 Bug Fixesd14349c #131 align to npm 10 node engine range (@hashtagchris) Chorese78d90d #131 run template-oss-apply (@hashtagchris) 3b308e9 #128 bump @npmcli/eslint-config from 4.0.5 to 5.0.0 (@dependabot[bot])...