JSPM

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

A comprehensive collection of TypeScript utilities for modern web development

Package Exports

  • @mxweb/utils
  • @mxweb/utils/chunk
  • @mxweb/utils/flatten
  • @mxweb/utils/format-size
  • @mxweb/utils/get-env
  • @mxweb/utils/get-settled-value
  • @mxweb/utils/get-type-name
  • @mxweb/utils/has-own-property
  • @mxweb/utils/interpolate
  • @mxweb/utils/is-browser
  • @mxweb/utils/is-callable
  • @mxweb/utils/is-equal-primitive
  • @mxweb/utils/is-nullish
  • @mxweb/utils/package.json
  • @mxweb/utils/pascal-to-kebab
  • @mxweb/utils/rate-limiter
  • @mxweb/utils/request-timeout
  • @mxweb/utils/retry
  • @mxweb/utils/sleep
  • @mxweb/utils/storage
  • @mxweb/utils/types
  • @mxweb/utils/uri

Readme

@mxweb/utils

A comprehensive collection of TypeScript utilities for modern web development.

License: MIT TypeScript npm version

Installation

# npm
npm install @mxweb/utils

# yarn
yarn add @mxweb/utils

# pnpm
pnpm add @mxweb/utils

# bun
bun add @mxweb/utils

Features

  • 💾 Storage Management - localStorage, sessionStorage, cookies
  • 🔧 String Utilities - Case conversion, URI encoding, interpolation
  • 📦 Object Utilities - Flattening, type checking, property access
  • 📊 Data Formatting - File size formatting
  • 🌍 Environment Variables - Cross-framework env access
  • ⏱️ Async Utilities - Sleep, retry, rate limiting
  • 📝 Array Utilities - Chunking, batch processing
  • 🔒 Type-Safe - Full TypeScript support
  • 🎯 Tree-Shakeable - Optimal bundle size

Quick Start

// Import everything
import * as utils from "@mxweb/utils";

// Import specific utilities
import { storage, chunk, formatSize } from "@mxweb/utils";

// Import from specific modules (tree-shaking)
import { storage } from "@mxweb/utils/storage";
import { chunk } from "@mxweb/utils/chunk";

Documentation

📖 Full documentation available at: https://docs.mxweb.io/utilities

License

MIT © MXWeb Team