index.js 469 B

12345678910111213141516171819202122232425262728
  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. }