Skip to content
Browse files

Add Yeti API entrypoints.

  • Loading branch information...
1 parent 9150b0f commit f65c1f643383b96b68e9fa8a11ffe878b1ea99d8 @reid reid committed
Showing with 36 additions and 0 deletions.
  1. +36 −0 lib/yeti.js
View
36 lib/yeti.js
@@ -0,0 +1,36 @@
+/**
+ * The Yeti API.
+ * @module yeti
+ */
+
+"use strict";
+
+var Hub = require("./hub");
+var hubClient = require("./client");
+
+/**
+ * @class exports
+ * @static
+ */
+
+/**
+ * Create a new Yeti Hub.
+ *
+ * @method createHub
+ * @param {Object} options
+ * @return {Hub} hub Yeti Hub instance.
+ */
+exports.createHub = function (options) {
+ return new Hub(options);
+};
+
+/**
+ * Create a new Yeti Hub Client.
+ *
+ * @method createClient
+ * @param {Object} url The HTTP URL of the Yeti Hub.
+ * @return {Client} client Yeti Client instance.
+ */
+exports.createClient = function (url) {
+ return hubClient.createClient(url);
+};

0 comments on commit f65c1f6

Please sign in to comment.
Something went wrong with that request. Please try again.