@clerc/utils
Advanced tools
Comparing version 0.19.0 to 0.20.0
const toArray = (a) => Array.isArray(a) ? a : [a]; | ||
const camelCase = (s) => s.replace(/-([a-z])/g, (_, c) => c.toUpperCase()); | ||
const kebabCase = (s) => s.replace(/([A-Z])/g, (_, c) => `-${c.toLowerCase()}`); | ||
const gracefulFlagName = (n) => n.length <= 1 ? `-${n}` : `--${n}`; | ||
const gracefulFlagName = (n) => n.length <= 1 ? `-${n}` : `--${kebabCase(n)}`; | ||
const gracefulVersion = (v) => v.length === 0 ? "" : v.startsWith("v") ? v : `v${v}`; | ||
@@ -6,0 +6,0 @@ const arrayEquals = (arr1, arr2) => { |
{ | ||
"name": "@clerc/utils", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)", | ||
@@ -5,0 +5,0 @@ "description": "Clerc utils", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6596