← All repos

umd

UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere.

Browse cluster: Terminal & CLI Output Styling
85commits
29contributors
1languages

Tech stack & purpose

UMD is a repository that formalizes the Universal Module Definition pattern for JavaScript modules, enabling a single codebase to work across multiple environments including browsers, Node.js, and other runtimes. The project addresses the problem of code portability by providing standardized templates and variations that handle different module systems—AMD, CommonJS, and browser globals—eliminating the need for library authors to maintain separate distribution files for each environment. The repository documents multiple UMD patterns suited to different use cases, from basic modules to jQuery plugins, along with references to build tools like Grunt, Gulp, and DocPad that automate wrapping code with UMD boilerplate. The standard was influenced by earlier work from developers including @kriskowal, Kit Cambridge, Addy Osmani, and James Burke.

Languages

JavaScript
100.0%

Contributors