src/evrythng.js

EVRYTHNG's JavaScript SDK

EVRYTHNG.JS

EvrythngJS uses AMD (RequireJS) to load all of its building modules.

This is the higher level module that requires the EVT.App, EVT.User and and EVT.Device classes representing the Application, User and Device scopes respectively. All other modules are loaded as dependencies of these.

UMD

EvrythngJS is wrapped in a UMD definition which makes it available as an AMD (RequireJS) module, CommonJS (Node.js) or browser globals.

EvrythngJS bundle also includes:

  • Almond: a minimal AMD script loader
  • NPO: an ES6 Promise polyfill, strict Promises/A+ (1.1) implementation
  • Regenerator: an ES6 Generator + ES7 Async-await functions polyfill
define([ 'core', 'api', 'scope/application', 'scope/user', 'scope/device' ], function(EVT) { 'use strict';

Return fully built EVT module.

return EVT; });