@ivu-plus/i-utils
Version:
前端模块化 JavaScript 工具库
354 lines (352 loc) • 6.03 kB
JavaScript
;
/**
* 解析器数据配置文件
*/
const resolverConfig = {
// 提供给自动导入插件的包名
from: "@ivu-plus/i-utils",
// 提供给自动导入插件用的方法签名
apis: [
"inString",
"trim",
"trimStart",
"trimEnd",
"trimAll",
"replaceAll",
"toUpperCase",
"toLowerCase",
"toSnakeCase",
"toKebabCase",
"toCamelCase",
"toPascalCase",
"zeroStart",
"zeroEnd",
"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",
"deepClone",
"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",
"formatDate",
"parseDate",
"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",
"md5",
"md5_hmac",
"sha1",
"sha1_hmac",
"sha256",
"sha224",
"sha256_hmac",
"sha224_hmac",
"sha512",
"sha384",
"sha512_256",
"sha512_224",
"sha512_hmac",
"sha384_hmac",
"sha512_256_hmac",
"sha512_224_hmac",
"sha3_512",
"sha3_384",
"sha3_256",
"sha3_224",
"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",
"setStorageSync",
"getStorageSync",
"getStorageInfoSync",
"removeStorageSync",
"clearStorageSync",
"setStorage",
"getStorage",
"getStorageInfo",
"removeStorage",
"clearStorage",
"testLoaded",
"KEYCODE" ],
// 提供给自动导入插件用的类型签名
types: []
};
exports.resolverConfig = resolverConfig;