1.0.1 • Published 6 months ago

make-rent v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

make-rent

A lightweight utility for creating flexible, functional module management inspired by framework core architectures.

Overview

The make-rent package is a unique approach to managing modules and references without traditional Object-Oriented Programming (OOP). It focuses on:

  • Dynamic module registration
  • Nested structure management
  • Flexible export and import mechanisms

Installation

npm install make-rent

RENT Pattern

Recursive Extensible Nested Transformations

A lightweight utility for creating flexible, functional module management.

Core Concept

The RENT pattern introduces a unique approach to module management:

  • Registry (r): Core module storage
  • Exports (e): Module capability management
  • Needs (n): Dependency tracking
  • Transformations (t): Module processing

Installation

npm install make-rent

Quick Example

const { RENTManager } = require('make-rent');

const framework = new RENTManager();

framework
  .register({
    name: 'core',
    type: 'worker',
    needs: ['utilities'],
    export: {
      initialize: () => {...}
    }
  })
  .nest('core', {
    utilities: {
      type: 'helper',
      export: {
        formatData: () => {...}
      }
    }
  })
  .loop();

Key Components

r: Registry

  • Stores all registered modules
  • Supports nested module structures

e: Exports

  • Manages module capabilities
  • Provides a centralized export mechanism

n: Needs

  • Tracks module dependencies
  • Enables dependency management

t: Transformations

  • Processes workers and writers
  • Supports dynamic module handling

Contributing

Experimental module management approach. Contributions welcome!

1.0.1

6 months ago

1.0.0

6 months ago