Monday, March 8, 2010

modulr

modulr is a CommonJS module implementation in Ruby for client-side JavaScript.

modulr accepts a singular file as input (the program) on which is does static analysis to recursively resolve its dependencies.

The program, its dependencies and a small, namespaced JavaScript library are concatenated into a single js file. This improves load times by minimizing HTTP requests.

The bundled JavaScript library provides each module with the necessary require function and exports and module free variables.

modulr is available as a Ruby library or as a command-line utility (modulrize).

http://github.com/codespeaks/modulr

No comments: