index.js 469 B

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