@ivujs/i-utils
Version:
前端模块化 JavaScript 工具库
363 lines (361 loc) • 6.17 kB
JavaScript
;
/**
* 解析器数据配置文件
*/
const resolverConfig = {
// 提供给自动导入插件的包名
from: "@ivujs/i-utils",
// 提供给自动导入插件用的方法签名
apis: [
"inString",
"trim",
"trimStart",
"trimEnd",
"trimAll",
"replaceAll",
"toUpperCase",
"toLowerCase",
"toSnakeCase",
"toKebabCase",
"toCamelCase",
"toPascalCase",
"padZeroStart",
"padZeroEnd",
"formatTitle",
"formatTemplate",
"formatThousand",
"formatRmbChinese",
"parseInt",
"parseFloat",
"arrayMin",
"arrayMax",
"arraySum",
"arrayAvg",
"inArray",
"arrayEquals",
"arrayCreate",
"arrayInsert",
"arrayInsertBefore",
"arrayInsertAfter",
"arrayRemove",
"arrayRemoveBefore",
"arrayRemoveAfter",
"arrayTop",
"arrayBottom",
"arrayUp",
"arrayDown",
"arraySwap",
"arraySort",
"arraySortBy",
"arrayUnique",
"arrayShuffle",
"arrayToTree",
"treeToArray",
"arrayUnion",
"arrayIntersect",
"arrayDifference",
"arrayComplement",
"mapToObject",
"mapToJson",
"objectToMap",
"jsonToMap",
"stringifyJson",
"parseJson",
"clone",
"cloneDeep",
"objectEquals",
"merge",
"getValueByPath",
"setValueByPath",
"debounce",
"throttle",
"sleep",
"today",
"yesterday",
"tomorrow",
"lastWeek",
"nextWeek",
"lastMonth",
"nextMonth",
"lastYear",
"nextYear",
"isAM",
"isPM",
"isToday",
"isYesterday",
"isBeforeYesterday",
"isTomorrow",
"isAfterTomorrow",
"isWorkday",
"isWeekend",
"isFirstDayOfWeek",
"isLastDayOfWeek",
"isFirstDayOfMonth",
"isLastDayOfMonth",
"isFirstDayOfYear",
"isLastDayOfYear",
"isLeapYear",
"isCommonYear",
"isBefore",
"isAfter",
"isBetween",
"isSame",
"isSameWeek",
"isSameMonth",
"isSameYear",
"isSameOrBefore",
"isSameOrAfter",
"getNow",
"getDate",
"getDateTime",
"getTimestamp",
"getUnixTimestamp",
"getDateObject",
"getDateArray",
"getWeek",
"getQuarter",
"getDayOfWeek",
"getDayOfMonth",
"getDayOfYear",
"getWeekOfMonth",
"getWeekOfYear",
"getDaysOfWeek",
"getDaysOfMonth",
"getDaysOfYear",
"getWeeksOfMonth",
"getWeeksOfYear",
"getFirstDateOfWeek",
"getLastDateOfWeek",
"getFullDateOfWeek",
"getFirstDateOfMonth",
"getLastDateOfMonth",
"getFullDateOfMonth",
"getFirstDateOfYear",
"getLastDateOfYear",
"getFullDateOfYear",
"getDiffDay",
"getDiffWeek",
"getDiffMonth",
"getDiffYear",
"getBetweenDates",
"getBetweenMonths",
"getBetweenYears",
"getPastTime",
"getOverTime",
"getAge",
"getZodiac",
"getChineseZodiac",
"addYear",
"addMonth",
"addDate",
"addHours",
"addMinutes",
"addSeconds",
"addMillisecond",
"addWeek",
"addQuarter",
"fromDateUTC",
"toDateUTC",
"toDateUTCString",
"toDate",
"toDateString",
"add",
"subtract",
"multiply",
"divide",
"modulo",
"gcd",
"scm",
"toFixed",
"toDecimal",
"regexpTest",
"isChinese",
"isEnglish",
"isExternal",
"isLowerCase",
"isUpperCase",
"isMobile",
"isEmail",
"isIdCard",
"isUrl",
"getRandom",
"getRandomDigit",
"formatFileSize",
"getFileName",
"getFileSuffix",
"fileToBlob",
"fileToBase64",
"fileToUrl",
"urlToFile",
"blobToFile",
"blobToText",
"blobToBase64",
"base64ToFile",
"base64ToBlob",
"urlToBase64",
"downloadBlobFile",
"downloadFileUrl",
"rgbToHex",
"rgbaToHex",
"rgbaToHsl",
"hexToRgb",
"hexToRgba",
"hexToHsl",
"getDrawHex",
"getDrawRgb",
"getDrawRgba",
"isInteger",
"isDecimal",
"isNumber",
"isString",
"isArray",
"isObject",
"isBoolean",
"isDate",
"isFunction",
"isFunctionString",
"isAsyncFunction",
"isSymbol",
"isRegExp",
"isError",
"isPromise",
"isMap",
"isWeakMap",
"isSet",
"isWeakSet",
"isBigInt",
"isJson",
"isTrue",
"isFalse",
"isNaN",
"isNotNaN",
"isNull",
"isNotNull",
"isEmpty",
"isNotEmpty",
"isBlank",
"isNotBlank",
"isUndefined",
"isNotUndefined",
"equals",
"equalsIgnoreCase",
"deepCompare",
"getKeyName",
"getKeyCode",
"getUUID",
"getGUID",
"base64Encode",
"base64Decode",
"base64EncodeURI",
"base64DecodeURI",
"base64FromUint8Array",
"base64ToUint8Array",
"base64FromHex",
"base64ToHex",
"md5",
"md5Raw",
"md5Hmac",
"md5HmacRaw",
"sha256",
"sha256Raw",
"sha256Hmac",
"sha256HmacRaw",
"sha224",
"sha224Raw",
"sha224Hmac",
"sha224HmacRaw",
"sm3Encrypt",
"sm3EncryptHmac",
"sm4Encrypt",
"sm4Decrypt",
"formatStartOf",
"formatStartOfName",
"formatStartOfMobile",
"formatStartOfIDCard",
"formatStartOfBankCard",
"getInfoByIDCard",
"getBirthdayByIDCard",
"getAgeByIDCard",
"getSexByIDCard",
"getProvinceByIDCard",
"getLimit",
"getTotalPage",
"getRainbowPager",
"getPrevPage",
"getNextPage",
"getProtocol",
"getHost",
"getHostName",
"getPort",
"getUrlPath",
"getUrlHash",
"getSearchString",
"hasSearchParam",
"getSearchParam",
"setSearchParam",
"parseSearchParam",
"stringifySearchParam",
"prependSearchParam",
"prependToSearchParam",
"appendSearchParam",
"appendToSearchParam",
"removeSearchParam",
"isSupportCookie",
"getCookie",
"setCookie",
"removeCookie",
"clearCookie",
"getLocalStorage",
"setLocalStorage",
"removeLocalStorage",
"clearLocalStorage",
"getSessionStorage",
"setSessionStorage",
"removeSessionStorage",
"clearSessionStorage",
"isSupportStorage",
"hasClass",
"addClass",
"removeClass",
"replaceClass",
"addStyle",
"getStyle",
"removeStyle",
"htmlEncode",
"htmlDecode",
"getBrowserInfo",
"isPc",
"isPhone",
"isAndroid",
"isIos",
"isWindowsPhone",
"isWindows",
"isLinux",
"isMac",
"isIphone",
"isIpad",
"isWeixin",
"isQQ",
"getClipboard",
"getClipboardText",
"setClipboard",
"setClipboardText",
"clearClipboard",
"testLoaded",
"SORT",
"MATH",
"LANG",
"REGEXP",
"DATE",
"KEYCODE",
"ID_CARD",
"generateSM4Key",
"generateSM4Iv",
"SM4" ],
// 提供给自动导入插件用的类型签名
types: [
"SM4DataType",
"DateOptions",
"SM4Options" ]
};
exports.resolverConfig = resolverConfig;