Tool-Assistant
是一个函数工具库, 用来帮你处理各种开发中遇到的问题,现在已经给出包括 Color
,Data
,Date
,File
,JSON
,Log
,Type
,UUID
等类型问题的工具函数.
- Color:
isHexColor
,rgbToHex
,hexToRGB
- Data:
convertToTreeData
,convertToFlatData
,findNode
,findDifferentElements
,findCommonElements
,findDifferentObjectsProperty
,findCommonObjectsProperty
,removeDuplicatesFromObjectsArray
,removeDuplicates
,findObjectsByProperty
- Date:
formatToDateTime
,formatToDate
,convertToTimestamp
,parseDate
,parseCustomFormat
- File:
dataURLtoBlob
,urlToBase64
,downloadByOnlineUrl
,downloadByBase64
,downloadByData
,downloadByUrl
- JSON:
待补充
- Log:
warn
,error
- Type:
is
,isDef
,isUnDef
,isObject
,isEmpty
,isDate
,isNull
,isNullAndUnDef
,isNullOrUnDef
,isNumber
,isPromise
,isString
,isFunction
,isBoolean
,isRegExp
,isArray
,isMap
,isWindow
,isElement
,isUrl
- UUID:
buildShortUUID
,buildSomeUUID
,buildUUID
npm i tool-assistant