Mercurial > psgxs
view modules.js @ 28:7cfcd7d5796c
Replace Paul Sowden’s ISO8601 functions by my own, since their licence is possibly incompatible with AGPL.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 01 Nov 2010 03:01:40 +0100 |
parents | b80ab94da447 |
children | b2faacfefb90 |
line wrap: on
line source
var modules = exports; var files = require('fs').readdirSync('modules'); var regex = /^mod_.*\.js/; for (var i in files) { var file = files[i]; if (!regex.test(file)) continue; var module = require('./modules/' + files[i]); for (var j in module) modules[j] = module[j]; }