Skip to content

XCons Common Package

XCons Common Package is a core package that provides shared utility tools and logger system for the XCons ecosystem. This package contains commonly used functionality across XCons widgets and other components.

📦 Package Name: @xcons/common
🌐 Supported Environments: Browser, Node.js, Universal (UMD)

🚀 Installation

Installation with NPM

bash
# with npm
npm install @xcons/common

Usage with CDN

html
<!-- UMD Bundle - Accessible globally under XConsCommon namespace -->
<script src="https://unpkg.com/@xcons/common@latest/core.js"></script>

<!-- ES6 Module -->
<script type="module">
  import { logger, CoreLogger } from 'https://unpkg.com/@xcons/common@latest/core.js';
</script>

📋 Key Features

  • ✅ Logger System: Comprehensive logging support
  • ✅ Cross-Platform: Browser and Node.js support
  • ✅ TypeScript: Full TypeScript support
  • ✅ UMD Bundle: Universal module format
  • ✅ Global Registry: Shared logger instances
  • ✅ Child Logger: Component-specific loggers