index.js (469B)
1 // Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved. 2 3 var errors = require('./errors'); 4 var types = require('./types'); 5 6 var Reader = require('./reader'); 7 var Writer = require('./writer'); 8 9 10 // --- Exports 11 12 module.exports = { 13 14 Reader: Reader, 15 16 Writer: Writer 17 18 }; 19 20 for (var t in types) { 21 if (types.hasOwnProperty(t)) 22 module.exports[t] = types[t]; 23 } 24 for (var e in errors) { 25 if (errors.hasOwnProperty(e)) 26 module.exports[e] = errors[e]; 27 }