
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@golive_me/utils
Advanced tools
A comprehensive collection of utility functions for TypeScript/JavaScript projects.
npm install @go-corp/utils
# or
yarn add @go-corp/utils
# or
bun add @go-corp/utils
import { toCamelCase, formatDate, deepClone } from '@go-corp/utils'
// String utilities
const camelCased = toCamelCase('hello world') // 'helloWorld'
// Date utilities
const formatted = formatDate(new Date(), 'medium') // 'Jan 1, 2024'
// Object utilities
const cloned = deepClone({ a: { b: 1 } })
toCamelCase(str: string): string - Converts string to camelCasetoKebabCase(str: string): string - Converts string to kebab-casetoSnakeCase(str: string): string - Converts string to snake_casetoPascalCase(str: string): string - Converts string to PascalCasetruncate(str: string, length: number, suffix?: string): string - Truncates string to specified lengthcapitalize(str: string): string - Capitalizes first letterslugify(str: string): string - Creates URL-friendly slugsgenerateRandomString(length: number, charset?: string): string - Generates random stringremoveWhitespace(str: string): string - Removes all whitespaceformatDate(date: Date, format?: 'short' | 'medium' | 'long' | 'iso'): string - Formats datedaysBetween(date1: Date, date2: Date): number - Days between two datesisToday(date: Date): boolean - Checks if date is todayisThisWeek(date: Date): boolean - Checks if date is this weekaddDays(date: Date, days: number): Date - Adds days to dateaddMonths(date: Date, months: number): Date - Adds months to datestartOfDay(date: Date): Date - Gets start of dayendOfDay(date: Date): Date - Gets end of daygetRelativeTime(date: Date, baseDate?: Date): string - Gets relative time stringdeepClone<T>(obj: T): T - Deep clones objectomit<T, K>(obj: T, keys: K[]): Omit<T, K> - Omits keys from objectpick<T, K>(obj: T, keys: K[]): Pick<T, K> - Picks keys from objectisEmpty(obj: any): boolean - Checks if object is emptyunique<T>(array: T[]): T[] - Removes duplicate valuesgroupBy<T, K>(array: T[], keyFn: (item: T) => K): Record<K, T[]> - Groups array items by keychunk<T>(array: T[], size: number): T[][] - Chunks array into smaller arraysshuffle<T>(array: T[]): T[] - Shuffles array randomlyisValidEmail(email: string): boolean - Validates email addressisValidUrl(url: string): boolean - Validates URLisValidPhone(phone: string): boolean - Validates phone number (US format)isValidUUID(uuid: string): boolean - Validates UUIDdelay(ms: number): Promise<void> - Creates a delay/sleep functiondebounce<T>(func: T, wait: number): (...args: Parameters<T>) => void - Debounces functionthrottle<T>(func: T, wait: number): (...args: Parameters<T>) => void - Throttles functionretry<T>(fn: () => Promise<T>, maxAttempts?: number, baseDelay?: number): Promise<T> - Retries async function with exponential backoffisNotNull<T>(value: T | null | undefined): value is T - Type guard for non-null valuesisString(value: unknown): value is string - Type guard for stringsisNumber(value: unknown): value is number - Type guard for numbersisBoolean(value: unknown): value is boolean - Type guard for booleansisArray<T>(value: unknown): value is T[] - Type guard for arraysisObject(value: unknown): value is Record<string, unknown> - Type guard for plain objectsisFunction(value: unknown): value is Function - Type guard for functionsclamp(value: number, min: number, max: number): number - Clamps number between min/maxrandomBetween(min: number, max: number): number - Random number between min/maxroundTo(value: number, decimals: number): number - Rounds to specified decimalspercentage(value: number, total: number): number - Calculates percentagedegToRad(degrees: number): number - Converts degrees to radiansradToDeg(radians: number): number - Converts radians to degreesgetQueryParams(url: string): Record<string, string> - Gets URL query parametersformatBytes(bytes: number, decimals?: number): string - Formats bytes to human readablecopyToClipboard(text: string): Promise<boolean> - Copies text to clipboardcreateTimer(label?: string) - Creates a performance timerlogWithTime(message: string, ...args: any[]): void - Logs with timestampprettyPrint(obj: any, indent?: number): void - Pretty prints objectmeasureTime<T>(fn: () => T | Promise<T>, label?: string): Promise<{ result: T; duration: number }> - Measures function execution timegetCurrentBranch(): string - Get current Git branchhasUncommittedChanges(): boolean - Check for uncommitted changesgetChangedFiles(): string[] - Get list of changed filesgetRecentCommits(count?: number): string[] - Get recent commit messagesincrementVersion(version: string, type: 'major' | 'minor' | 'patch'): string - Increment version stringgetCurrentVersion(packagePath?: string): string - Get version from package.jsonupdatePackageVersion(newVersion: string, packagePath?: string): void - Update package.json versionanalyzeChangesForVersionBump(): VersionAnalysis - Analyze changes for version bumpupdateChangelog(version: string, changeType: string, changesList: string[]): void - Update CHANGELOG.mdcommitAndPush(message: string, push?: boolean): void - Create and push git commitisGitRepository(): boolean - Check if in a git repositoryexec(command: string, options?: ExecOptions): string - Execute shell commandlog(message: string, color?: string): void - Log with colorCOLORS - Terminal color constantstext(options: PromptOptions): Promise<string> - Simple text promptconfirm(options: ConfirmOptions): Promise<boolean> - Yes/no confirmationselect<T>(options: SelectOptions<T>): Promise<T> - Select from optionsmultiselect<T>(options: MultiSelectOptions<T>): Promise<T[]> - Multi-select from optionspassword(options: PromptOptions): Promise<string> - Hidden password inputProgressIndicator - Animated progress indicator class# Install dependencies
bun install
# Run tests
bun run test
# Build
bun run build
# Type check
bun run type-check
# Lint
bun run lint
@go-corp/utils includes an MCP (Model Context Protocol) server that automatically provides AI assistants with context about your utilities.
npm install @go-corp/utils
{
"mcpServers": {
"go-utils": {
"command": "go-utils-mcp"
}
}
}
@go-corp/utils is available and suggest relevant utilities!See mcp-server/README.md for detailed setup instructions.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT © Go Corp
FAQs
A collection of common utility functions for Go Corp projects
The npm package @golive_me/utils receives a total of 1 weekly downloads. As such, @golive_me/utils popularity was classified as not popular.
We found that @golive_me/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.