New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ecosy/core

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecosy/core

A modular, tree-shakable collection of essential utilities, serialization primitives, and event-driven patterns for modern TypeScript applications

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@ecosy/core

A modular, tree-shakable collection of essential utilities, serialization primitives, and event-driven patterns for modern TypeScript applications.

Installation

yarn add @ecosy/core

Features

Subpath Imports

Entry pointDescription
@ecosy/coreRe-exports all modules
@ecosy/core/typesTypeScript type utilities
@ecosy/core/utilitiesRuntime utility functions
@ecosy/core/subscriberPub/sub event emitter with state
@ecosy/core/httpHTTP client with interceptors and upload
@ecosy/core/loggerStructured logger with log levels
@ecosy/core/syhemoSystem health monitor
@ecosy/core/serializeSerialization engine (JSON, URL, queryString)
@ecosy/core/slugifyUnicode-safe string slugifier
@ecosy/core/searchifyDiacritic-insensitive fuzzy search

Types

Deep utility types for TypeScript — Freezable<T>, PartialLiteral<T>, Promisable<V>, ToString<T>, and more.

Utilities

  • clone — Deep clone with circular reference handling
  • freeze — Deep freeze via clone + Object.freeze
  • isEqual — Structural deep equality (Date, Map, Set, TypedArrays)
  • merge — Deep merge with prototype pollution protection
  • flatten / flattenToArray — Object flattening
  • get — Safe deep path resolution ("a.b[0].c")
  • defer / deferAsync — rAF + setTimeout scheduling with cancel
  • Type guards: isFunction, isObject, isLiteralObject, isComplexObject, isObjectable, hasOwnProperty

Subscriber

Pub/sub event emitter with built-in state management, async once, and typed wiring.

Http

Configurable HTTP client with request/response interceptors, auth token injection, URL interpolation via Serialize, and XHR-based upload with progress tracking.

Serialize

Centralized serialization engine:

  • Serialize.Primitive — Type guards and deep normalization (BigInt, Date, undefined stripping)
  • Serialize.JSON — Safe stringify/parse that never throws
  • Serialize.URL — Robust encode/decode with :param URL building
  • Serialize.queryString — Advanced parse/stringify (bracket, index, comma formats)

Slugify & Searchify

  • slugify — Unicode-safe slug generation with custom transformer map
  • searchify — Diacritic-insensitive fuzzy search using sliding window algorithm

Documentation

Full API reference and guides: docs.ecosy.io

PackageDescription
@ecosy/datekitHeadless date utilities (Dateify, Dayify, Monthify, Yearify)
@ecosy/mailerEmail engine with template formatting, retry, and rate limiting
@ecosy/storeState management with slices and reducers
@ecosy/reactReact hooks for @ecosy/store

License

MIT

Keywords

ecosy

FAQs

Package last updated on 24 Mar 2026

Did you know?

Socket

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.

Install

Related posts