UNPKG

descartes.js

Version:

A JS alternative to matplotlib, made for Descartes

15 lines (14 loc) 583 B
// Browserify / Node.js if (typeof define === "function" && define.amd) { define(() => new Descartes()); // CommonJS and Node.js module support. } else if (typeof exports !== "undefined") { // Support Node.js specific `module.exports` (which can be a function) if (typeof module !== "undefined" && module.exports) { exports = module.exports = new Descartes(); } // But always support CommonJS module 1.1.1 spec (`exports` cannot be a function) exports.Descartes = new Descartes(); } else if (typeof global !== "undefined") { global.Descartes = new Descartes(); }