js-cool
Version:
Collection of common JavaScript / TypeScript utilities
259 lines (256 loc) • 3.29 kB
JavaScript
import jsCool from './index.cjs.js'
const {
version,
loadSource,
mountCss,
mountImg,
mountJs,
mountStyle,
preloader,
download,
CSVToArray,
CSVToJSON,
JSONToCSV,
RGBToHex,
addEvent,
all,
any,
arrayToCSV,
camel2Dash,
cleanData,
clearAttr,
clearHtml,
escape,
unescape,
client,
complement,
contains,
cutCHSString,
dash2Camel,
decodeBase64,
decodeUtf8,
delCache,
delCookie,
delSession,
delay,
encodeBase64,
encodeUtf8,
extend,
clone,
fillIPv6,
fixNumber,
mapTemplate,
getAppVersion,
appVersion,
getCHSLength,
getCache,
getCookie,
getCookies,
getDirParam,
compareVersion,
getNumber,
getOsVersion,
osVersion,
browserVersion,
getQueryParam,
getQueryParams,
getProperty,
randomColor,
randomNumber,
randomNumbers,
randomString,
shuffle,
fingerprint,
getScrollPosition,
getSession,
getType,
getFileType,
sorter,
sortPinyin,
parseUrlParam,
spliceUrlParam,
safeParse,
safeStringify,
getUrlParam,
getUrlParams,
intersect,
isDigitals,
isExitsFunction,
isExitsVariable,
isEqual,
isWindow,
isObject,
isDate,
isRegExp,
isArray,
isIterable,
isPlainObject,
isDarkMode,
inBrowser,
inNodeJs,
isNumberBrowser,
minus,
nextIndex,
nextVersion,
punctualTimer,
promiseFactory,
waiting,
awaitTo,
arrayBufferToBase64,
arrayBufferToBlob,
base64ToArrayBuffer,
base64ToBlob,
base64ToFile,
blobToArrayBuffer,
blobToBase64,
blobToUrl,
fileToBase64,
svgToBlob,
urlToBlob,
openUrl,
copy,
pattern,
removeEvent,
searchObject,
setCache,
setCookie,
setProperty,
setSession,
stopBubble,
stopDefault,
toThousands,
trim,
union,
unique,
upperFirst,
uuid,
windowSize
} = jsCool
export {
jsCool as default,
version,
loadSource,
mountCss,
mountImg,
mountJs,
mountStyle,
preloader,
download,
CSVToArray,
CSVToJSON,
JSONToCSV,
RGBToHex,
addEvent,
all,
any,
arrayToCSV,
camel2Dash,
cleanData,
clearAttr,
clearHtml,
escape,
unescape,
client,
complement,
contains,
cutCHSString,
dash2Camel,
decodeBase64,
decodeUtf8,
delCache,
delCookie,
delSession,
delay,
encodeBase64,
encodeUtf8,
extend,
clone,
fillIPv6,
fixNumber,
mapTemplate,
getAppVersion,
appVersion,
getCHSLength,
getCache,
getCookie,
getCookies,
getDirParam,
compareVersion,
getNumber,
getOsVersion,
osVersion,
browserVersion,
getQueryParam,
getQueryParams,
getProperty,
randomColor,
randomNumber,
randomNumbers,
randomString,
shuffle,
fingerprint,
getScrollPosition,
getSession,
getType,
getFileType,
sorter,
sortPinyin,
parseUrlParam,
spliceUrlParam,
safeParse,
safeStringify,
getUrlParam,
getUrlParams,
intersect,
isDigitals,
isExitsFunction,
isExitsVariable,
isEqual,
isWindow,
isObject,
isDate,
isRegExp,
isArray,
isIterable,
isPlainObject,
isDarkMode,
inBrowser,
inNodeJs,
isNumberBrowser,
minus,
nextIndex,
nextVersion,
punctualTimer,
promiseFactory,
waiting,
awaitTo,
arrayBufferToBase64,
arrayBufferToBlob,
base64ToArrayBuffer,
base64ToBlob,
base64ToFile,
blobToArrayBuffer,
blobToBase64,
blobToUrl,
fileToBase64,
svgToBlob,
urlToBlob,
openUrl,
copy,
pattern,
removeEvent,
searchObject,
setCache,
setCookie,
setProperty,
setSession,
stopBubble,
stopDefault,
toThousands,
trim,
union,
unique,
upperFirst,
uuid,
windowSize
}