Skip to Content
UtilsOverview

@gg-software/utils

Pure, framework-agnostic helpers — no React. All formatting helpers use the platform’s Intl APIs (zero locale data shipped); the few browser-only helpers are SSR-safe no-ops.

pnpm add @gg-software/utils
import { slugify, formatCurrency, groupBy, debounce } from '@gg-software/utils';
GroupFunctions
Stringcapitalize, truncate, slugify, camelCase, kebabCase, snakeCase, titleCase, pluralize, maskString, randomString
NumbernumberToString, formatNumber, formatCurrency, formatPercent, formatBytes, clamp, round
DateformatDate, formatDateRange, formatRelativeTime, parseDate, addDays, addMonths, isToday, isSameDay
ArraygroupBy, sortBy, uniqueBy, chunk, partition, range, sum, average, move
Objectpick, omit, get, set, deepMerge, deepClone, isEmpty
ValidationisEmail, isUrl, isPhone, isStrongPassword
Asyncdebounce, throttle, sleep, retry, memoize
Iduuid, generateId
Misccx, copyToClipboard, downloadFile, parseQueryString, buildUrl, noop