2 Repos
Bridges that enable modules written for one JavaScript module system to run in another without modification.
Distinct from CommonJS Compatibility: Broadens the scope from just CommonJS compatibility to an adapter between any two JS module systems (e.g., AMD and CommonJS).
Explore 2 awesome GitHub repositories matching software engineering & architecture · Module System Adapters. Refine with filters or upvote what's useful.
This project provides a universal module definition pattern and JavaScript module wrapper. It establishes a standardized methodology for distributing JavaScript libraries that function across CommonJS, AMD, and browser global environments. The system uses an adapter approach to bridge different module systems, allowing a single file to operate in both Node.js and client-side browser environments without modification. This includes specific patterns for creating jQuery plugins that maintain compatibility across modular loaders and global scopes. The codebase implements environment-detection l
Acts as a bridge enabling modules from different JavaScript module systems to interoperate without modification.
eslint-plugin-import ist ein ESLint-Plugin für die statische Analyse, das eine Reihe von Regeln und Resolvern zur Validierung von Import-Statements und zur Durchsetzung architektonischer Vorgaben beim Importieren und Exportieren von Code bereitstellt. Es fungiert als Modul-Validator und Resolver, um sicherzustellen, dass Import-Deklarationen auf gültige Dateien verweisen und referenzierte Symbole existieren. Das Projekt identifiziert rekursive Import-Ketten, um zirkuläre Abhängigkeiten zu verhindern, und nutzt ein konfigurierbares Auflösungssystem, um Aliase und nicht-standardisierte Dateipfade abzubilden. Es kann zudem zwischen internen Projektdateien und externen Bibliotheksabhängigkeiten durch Pfad- und Ordner-Pattern-Matching unterscheiden. Das Plugin deckt weiterführende Bereiche der Code-Qualität ab, einschließlich der Durchsetzung von Import-Stilen für Sortierung und Gruppierung, der Einschränkung spezifischer Modulsysteme und der Verifizierung der Export-Verfügbarkeit zur Vermeidung von Laufzeitfehlern. Es kann zudem Import-Quellen basierend auf dem Ordnerstandort einschränken oder spezifische Pfadtypen untersagen.
Restricts the use of specific module formats like CommonJS to ensure a consistent architectural pattern.