acuminous/yadda

View on GitHub
lib/index.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
'use strict';

var api = {
  Yadda: require('./Yadda'),
  EventBus: require('./EventBus'),
  Interpreter: require('./Interpreter'),
  Context: require('./Context'),
  Library: require('./Library'),
  Dictionary: require('./Dictionary'),
  FeatureFileSearch: require('./FeatureFileSearch'),
  FileSearch: require('./FileSearch'),
  Platform: require('./Platform'),
  localisation: require('./localisation/index'),
  converters: require('./converters/index'),
  parsers: require('./parsers/index'),
  plugins: require('./plugins/index'),
  shims: require('./shims/index'),
  createInstance: function () {
    // Not everyone shares my sense of humour re the recursive api :(
    // See https://github.com/acuminous/yadda/issues/111
    return api.Yadda.apply(null, Array.prototype.slice.call(arguments, 0));
  },
};

module.exports = api;