Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@maz-ui/utils

Latest version: v5.9.0-beta.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: louismazel
565 Stars
77 Forks
33 Versions
24.8K Downloads
TypeScript Repo language

Scan summary

@maz-ui/utils was last scanned on 28 Nov 2026 at version 5.9.0-beta.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 33 versions; the latest 4 were published within 5 days (24–28 Nov 2026).
  • Findings: No rules fired in version 5.9.0-beta.1.
  • Downloads: 24,805 downloads.

Versions

33 versions published
Versions and the rules that fired in each
VersionPublishedStatus
5.9.0-beta.1 LATEST 28 Nov 2026 No rules fired
5.9.0-0.canary-2f6efc4 27 Nov 2026 No rules fired
5.9.0-0.canary-1a51815 24 Nov 2026 No rules fired
5.9.0-beta.0 24 Nov 2026 Not shown
5.8.0 20 Nov 2026 Not shown

No rules fired in 5.9.0-beta.1

Findings

Findings for v5.9.0-beta.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 5.9.0-beta.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@maz-ui/utils

JavaScript/TypeScript utility functions for the Maz-UI ecosystem - String manipulation, date formatting, debouncing, throttling, and more.

Installation

npm install @maz-ui/utils

Features

  • String utilities - Case conversion, normalization, and manipulation
  • Date and number formatting - Localized formatting with internationalization support
  • Performance utilities - Debouncing, throttling, and optimization helpers
  • Browser utilities - Client/server detection, user visibility, and environment checks
  • TypeScript helpers - Advanced type utilities for better type safety
  • Phone number formatting - International phone number utilities
  • Currency formatting - Multi-currency formatting support
  • Validation utilities - Deep equality checks and data validation
  • DOM utilities - Script loading, textarea autogrow, and swipe handling

Usage

Basic Import
import { camelCase, debounce, formatDate } from '@maz-ui/utils'

// String utilities
const camelCased = camelCase('hello-world') // 'helloWorld'

// Date formatting
const formatted = formatDate(new Date(), 'en-US') // '12/25/2023'

// Performance utilities
const debouncedFn = debounce(() => console.log('Called!'), 300)
Modular Imports
// Import TypeScript helpers
import type { DeepPartial } from '@maz-ui/utils/ts-helpers/DeepPartial'
// Import specific helpers
import { camelCase } from '@maz-ui/utils/helpers/camelCase'
import { debounce } from '@maz-ui/utils/helpers/debounce'
import { formatDate } from '@maz-ui/utils/helpers/formatDate'

Available Utilities

String Utilities
  • camelCase - Convert strings to camelCase
  • capitalize - Capitalize first letter of strings
  • kebabCase - Convert strings to kebab-case
  • pascalCase - Convert strings to PascalCase
  • snakeCase - Convert strings to snake_case
  • normalizeString - Normalize strings for comparison
Date and Number Formatting
  • formatDate - Format dates with locale support
  • formatRelativeTime / getRelativeTime - Localized relative time (3 minutes ago) with Intl
  • formatNumber - Format numbers with locale support
  • formatCurrency - Format currency values with locale support
Performance Utilities
  • debounce - Debounce function calls
  • debounceCallback - Debounce with callback support
  • debounceId - Debounce with unique identifiers
  • throttle - Throttle function calls
  • throttleId - Throttle with unique identifiers
Browser and Environment
  • isClient - Check if running in client environment
  • isServer - Check if running in server environment
  • isStandaloneMode - Check if app is in standalone mode
  • userVisibility - Track user visibility state
  • getBrowserLocale - Get browser locale settings
Validation and Comparison
  • isEqual - Deep equality comparison
  • checkAvailability - Check resource availability
  • truthyFilter - Filter truthy values from arrays
DOM and UI Utilities
  • scriptLoader - Dynamic script loading
  • TextareaAutogrow - Automatic textarea height adjustment
  • swipeHandler - Touch swipe gesture handling
  • idleTimeout - Idle state management
Phone and Location
  • formatPhoneNumber - Format international phone numbers
  • countryCodeToUnicodeFlag - Convert country codes to flag emojis
  • getCountryFlagUrl - Get country flag image URLs
  • fetchLocaleIp - Fetch user locale from IP
Utility Functions
  • sleep - Promise-based delay utility
  • getErrorMessage - Extract error messages safely

TypeScript Helpers

Advanced type utilities for enhanced TypeScript development:

  • DeepPartial - Make all properties optional recursively
  • DeepKeyOf - Get all nested keys of an object type
  • FlattenObjectKeys - Flatten object keys to dot notation
  • GenericInstanceType - Extract instance type from constructor
  • InferMaybeRef - Infer type from Vue ref or regular value
import type { DeepKeyOf, DeepPartial } from '@maz-ui/utils'

interface User {
  profile: {
    name: string
    email: string
  }
}

type PartialUser = DeepPartial<User> // All properties optional
type UserKeys = DeepKeyOf<User> // 'profile' | 'profile.name' | 'profile.email'

Performance Examples

import { debounce, throttle } from '@maz-ui/utils'

// Debounce search input
const debouncedSearch = debounce((query: string) => {
  performSearch(query)
}, 300)

// Throttle scroll events
const throttledScroll = throttle(() => {
  updateScrollPosition()
}, 16)

Formatting Examples

import { formatCurrency, formatDate, formatPhoneNumber } from '@maz-ui/utils'

// Currency formatting
const price = formatCurrency(1234.56, 'USD', 'en-US') // '$1,234.56'

// Date formatting
const date = formatDate(new Date(), 'fr-FR') // '25/12/2023'

// Phone formatting
const phone = formatPhoneNumber('+33123456789', 'international')

Requirements

  • Node.js 22.23.4+, 24.22.1+ or 26.12.1+ (the releases with the October 2026 security fixes)
  • TypeScript support included
  • Tree-shakeable for optimal bundle size

Contributing

Contributions are welcome! Please ensure:

  • New utilities follow existing patterns
  • TypeScript types are properly defined
  • Unit tests are included
  • Documentation is updated accordingly

License

MIT License - see LICENSE file for details.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @maz-ui/utils

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229