@dongdev/fca-unofficial
Version:
Unofficial Facebook Chat API for Node.js - Interact with Facebook Messenger programmatically
10 lines (9 loc) • 327 B
JavaScript
;
const m = require("./index.js");
const core = typeof m.login === "function" ? m.login : m.default;
if (typeof core !== "function") {
throw new Error("@dongdev/fca-unofficial: expected login to be a function (check dist/index.js exports).");
}
Object.assign(core, m);
core.default = core;
module.exports = core;