Moe-js v0.3

API Basics

When you import moe-js, the returned object is the default instance of the MoeEngine class.

const moe = require('@toptensoftware/moe-js');

Although rarely necessary, you can create additional MoeEngine instances as follows:

const moe = require('@toptensoftware/moe-js');
const moe2 = new moe.MoeEngine();