@geenius/tools
v0.17.0
Published
Geenius Tools — Framework-agnostic utility helpers (validation, async, date, string, object, function, classnames)
Readme
@geenius/tools
Framework-agnostic utility helpers for the Geenius ecosystem.
- Validation —
isEmail,isUrl,isUUID,isPhone,isCreditCard,isStrongPassword - Async —
sleep,delay,timeout,retry,TimeoutError,RetryExhaustedError - Date —
addDays,addHours,addMinutes,addSeconds,formatDate,getRelativeTime,isExpired,parseDate - String —
camelCase,pascalCase,snakeCase,slugify,capitalize,truncate,escapeHtml,unescapeHtml - Object —
deepClone,deepMerge,isEqual,omit,pick - Function —
compose,pipe,debounce,throttle,memoize - Class names —
cn(Tailwind-aware),cx(plain concatenation)
@geenius/tools is the foundational layer below every other Geenius
package — it ships no framework variants and pulls in only the smallest
of runtime dependencies (clsx, tailwind-merge).
Install
pnpm add @geenius/toolsUse
import { retry, sleep, formatDate, cn } from '@geenius/tools'Testing
pnpm lint
pnpm type-check
pnpm test
pnpm test:gauntlet@geenius/tools has no UI, Storybook, e2e, visual, a11y, performance UI, or
database surface. The corresponding aggregate scripts are explicit no-op gates
so the standard ecosystem package gauntlet can still call pnpm test:all.
See packages/shared/src for the full source surface.
License
FSL-1.1-Apache-2.0. See LICENSE.
