index.js 247 B

12345678910111213
  1. 'use strict';
  2. var env = require('../env');
  3. if ('unknown' == env.type) {
  4. throw new Error('Unknown environment');
  5. }
  6. module.exports =
  7. env.isNode ? require('./node') :
  8. env.isMongo ? require('./collection') :
  9. require('./collection');