Note: this project is under active development, you should pin the strict version to avoid breakages.
General utilities for Web development
browserIsIE()browserIsSupported()copyToClipboard(content: string)deleteCookie(name: string, path = '/', domain: string | undefined = undefined, secure = false, sameSite: 'Lax' | 'Strict' | 'None' | undefined = undefined)getCookie(name: string)hasTimeZoneSupport()isBot(ssrReturn: boolean)isValidSecureUrl(url: string)prefetchImages(url: string|string[])storageAvailable(type: 'localStorage' | 'sessionStorage')
getNext(allowedDomains: string[], router?: Router)- returns the value of?nextquery param or/getNextPath(router?: Router)- returns the value of?nextquery param or/isString(value: string | LocationQueryValue[])
pnpm add @slipmatio/toolbelt
Browser tools: import { tool } from @slipmatio/toolbelt
Vue tools (vue and vue-router required): import { tool } from @slipmatio/toolbelt/vue
pnpm i
pnpm dev
Type check: pnpm ts
pnpm test
- Run the backend:
uv run uvicorn api:app --reload pnpm test:e2e
Bump version number in package.json, merge to main.
Contributions are welcome! Please follow the code of conduct when interacting with others.
Follow @uninen on Twitter