JavaScript classes with an edge.
This is library provides a class factory. The instances of its generated classes have many features that will eventually allow them to:
- Be distributively managed between machines
- Be differently viewed in different contexts (e.g., depending on the viewer or an internal state)
- Be efficiently stored
- Keep precise track of their changes
All while still feeling like plain JavaScript objects.
$ npm install --save master-class
-
Require the library
const M = require('master-class');
-
Create a new class:
const MyMClass = M({/* options */});
-
Create an instance:
const myInstance = new MyMClass();
or
const myInstance = MyMClass.createInstance();
[WIP] For now, you could just read through the tests.