comparison modules.js @ 24:b80ab94da447

Add new modules files.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 01 Nov 2010 00:02:27 +0100
parents
children b2faacfefb90
comparison
equal deleted inserted replaced
23:5fc4ee90c1bc 24:b80ab94da447
1 var modules = exports;
2
3 var files = require('fs').readdirSync('modules');
4 var regex = /^mod_.*\.js/;
5
6 for (var i in files) {
7 var file = files[i];
8 if (!regex.test(file))
9 continue;
10
11 var module = require('./modules/' + files[i]);
12 for (var j in module)
13 modules[j] = module[j];
14 }