Skip to content

Functions ​

Core
Add-ons
Sort by

Tools

awaitTo-async await wrapper for easy error handling

State

useStorage-create a reactive ref that can be used to access & modify LocalStorage or SessionStorage
useStorageAsync-reactive Storage in with async support

Browser

getQueryParam-get a single query parameter (behind "#")
getUrlParam-get a single URL parameter (from the "location.search"
parseUrlParam-
Parse URL query parameters into an object
useEventListener-use EventListener with ease
windowPrint-print using window.print via an iframe

Animation

animation-animation class for creating configurable animations with custom timing functions
useInterval-reactive counter increases on every interval
useIntervalFn-wrapper for setInterval with controls
useRafFn-call function on every requestAnimationFrame

Component

tryOnMounted-safe onMounted
tryOnScopeDispose-safe onScopeDispose
unrefElement-retrieves the underlying DOM element from a Vue ref or component instance
useMounted-mounted state in ref

Watch

until-promised one-time watch for changes
watchPausable-pausable watch
watchWithFilter-watch with additional EventFilter control

Reactivity

reactify-converts plain functions into reactive functions
toRef-normalize value/ref/getter to ref or computed

Time

parseTime-automatically update the time ago string when the time changes

Utilities

amountCapital-金额转大写
clone-
_proto_ can be redefined as an own property on any object instance through Object.defineProperty() without triggering the setter
compareNumbers-compare two numbers with precision
convertObjectKeys-convert object keys between snake_case and camelCase formats
nodeCache-a simple in-memory cache with TTL support
parseGitUrl-parse Git URL strings and normalize them to HTTPS format
promise-convert an object to a promise-like API with thenable support
rand-browser-side generation of UUID v4
useBase64-reactive base64 transforming
useConvertObjectKeys-basic counter with utility functions
useCounter-basic counter with utility functions
useDebounce-debounce execution of a function
useSupported-sSR compatibility isSupported
useThrottle-throttle execution of a function
useToggle-a boolean switcher with utility functions
utils-debounce execution of a function

Env

env-check if the current environment

@Integrations

useAxios-wrapper for axios
useProxy-dynamic proxy IP management utility
useQRCode-wrapper for qrcode
useVConsole-wrapper for vconsole

Released under the MIT License.