JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q81250F
  • License MIT

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and Bun.

Package Exports

  • @utilify/core
  • @utilify/core/dist/index.cjs
  • @utilify/core/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@utilify/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@utilify/core

Utilify is a modern, strongly typed, and safe utility function library for the JavaScript ecosystem. It was created to address the need for:

  • Ease of use with clear and straightforward APIs
  • Clear and accessible documentation for quick learning and reference
  • Robust typing for safety and TypeScript autocomplete
  • Lightweight design to avoid performance or bundle bloat
  • Reliability to prevent unexpected behaviors common in generic utilities

Utilify offers a wide range of utilities, organized into well-defined scopes, making navigation and quick access in the documentation easier. It is compatible with Browser, Node.js, Deno, and Bun.


Installation

Utilify can be easily installed using the main package managers, with full support for JSR — the official Deno module registry, also compatible with Node.js and other modern runtimes.

npm install @utilify/core
# or
yarn add @utilify/core
# or
pnpm add @utilify/core
# or (Deno)
deno add jsr:@utilify/core

About JSR

JSR is the official Deno module registry. It allows you to install modern packages with a single command, even in environments like Node.js, Bun, or npm-compatible runtimes.

JSR Usage Examples:

# Deno
deno add jsr:@utilify/core
# npm
npx jsr add @utilify/core
# bun
bunx jsr add @utilify/core
# pnpm
pnpm add jsr:@utilify/core
# yarn
yarn add jsr:@utilify/core

Usage

The package is compatible with ES modules (ESM) and can be used in both TypeScript and JavaScript projects.

// ESM
import { isString, chunk, formatDate } from '@utilify/core';
// CJS
const { isString, chunk, formatDate } = require('@utilify/core');

Overview

We organize our documentation by functional categories to make it easier for you to navigate and quickly access the features we offer. Each scope groups utilities related to a specific domain, ensuring an intuitive and coherent experience for you, the developer.

Scopes

  • Array: Functions for array manipulation, such as filtering, chunking, flattening, and other essential operations.
  • Browser: Functions related to browser-specific tasks, including language detection, active theme, connection status, and browser-specific conditions.
  • Colors: Tools for converting between color formats (HEX, RGB, HSL) and color validation.
  • Crypto: Utilities for encoding, decoding, hashing, UUID generation, and cryptographic checks.
  • Date: Functions for date and time manipulation, including formatting, parsing, calculations, and validation.
  • Env: Helpers to detect the execution environment, identifying browser, Node.js, runtime, and environment variables.
  • Function: Helper functions for composition, memoization, partial application, and flow control.
  • Promise: Utilities for working with Promises, concurrency, throttling, debouncing, and asynchronous control.
  • Math: Mathematical tools for calculations, statistics, random number generation, and other operations.
  • Number: Helpers focused on numeric validation, range checking, and specific number operations.
  • Object: Functions for deep cloning, merging, property access, and object manipulation.
  • Regex: Common regular expressions and helper functions for pattern validation.
  • String: Utilities for string manipulation, such as capitalization, trimming, slug generation, and other transformations.
  • Types: Functions for type checking and refinement in JavaScript/TypeScript, increasing the safety and robustness of your code.

Our modular structure allows you to quickly find the ideal set of utilities for each need, keeping the documentation lightweight and straightforward.


License

MIT