/hubjs

Primary LanguageJavaScriptMIT LicenseMIT

hubjs

Provides loosely coupled sandboxes for your JavaScript apps.

Hub.use(async ({ log, request }) => {
  const { ok, response } = await request("user.json"); // { "who": "World" }
  if (ok) {
    log(`Hello, ${response.who}!`);
  }
});