0.3.3 • Published 1 month ago

azure-aspect-assembler v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Azure Aspect Assembler

A lightweight library for assembling modular components of web applications, enabling a cleaner and more maintainable codebase.

Features

  • Register and manage components dynamically.
  • Built-in event system for component lifecycle management.
  • Fetch data with integrated Axios support.
  • Environmental variable support with Dotenv.

Installation

npm install azure-aspect-assembler

Usage

import AspectAssembler from 'azure-aspect-assembler';

const assembler = new AspectAssembler();

// Register a component
const componentId = assembler.registerComponent('exampleComponent', { /* component definition */ });

// Fetch data
assembler.fetchData('https://api.example.com/data')
.then(data => console.log(data))
.catch(error => console.error(error));

// Listen for events
assembler.on('componentRegistered', (event) => console.log(`Component registered: \${event.name}`));
assembler.on('dataFetched', (data) => console.log('Data fetched:', data));
assembler.on('fetchError', (error) => console.error('Fetch error:', error));

License

MIT

0.3.3

1 month ago

0.3.1

2 months ago

0.3.0

2 months ago