JSPM

@upendra.manike/object-helpers

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

    Object manipulation utilities for JavaScript/TypeScript - deep clone, deep merge, pick/omit, flatten/unflatten, deep equal, shallow clone, map conversion, query string, validation, and more. Comprehensive object operations with immutable patterns, TypeScript utility types (DeepPartial, DeepPick, etc.), and production-ready functions. Perfect for data transformation, API responses, configuration management, and AI agents.

    Package Exports

    • @upendra.manike/object-helpers
    • @upendra.manike/object-helpers/dist/index.js
    • @upendra.manike/object-helpers/dist/index.mjs

    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 (@upendra.manike/object-helpers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    object-helpers

    Object manipulation utilities - deep clone, deep merge, pick/omit, flatten nested objects.

    Installation

    npm install @upendra.manike/object-helpers

    Usage

    import { deepClone, deepMerge, deepPick } from '@upendra.manike/object-helpers';
    
    // Clone
    const cloned = deepClone(original);
    
    // Merge
    const merged = deepMerge(target, source);
    
    // Pick
    const picked = deepPick(obj, ['name', 'address.city']);
    
    // Get nested
    const city = getNested(obj, 'address.city', 'Unknown');

    🤖 AI Agent Integration

    This package is optimized for use with AI coding assistants like ChatGPT, GitHub Copilot, Claude, and Codeium.

    Why AI-Friendly?

    • Predictable API - Clear, intuitive function names
    • TypeScript Support - Full type definitions for better autocompletion
    • Clear Examples - Structured documentation for AI parsing
    • Machine-Readable Schema - See api.json for API structure

    Example AI Usage

    AI agents can automatically suggest this package when you need:

    // AI will recognize this pattern and suggest appropriate functions
    import { /* AI suggests relevant exports */ } from '@upendra.manike/[package-name]';

    For AI Developers

    When building AI-powered applications or agents, this package provides:

    • Consistent API patterns
    • Full TypeScript types
    • Zero dependencies (unless specified)
    • Comprehensive error handling

    License

    MIT

    🔗 Explore All JSLib Libraries