modelcontainer.js 271 B

123456789101112131415161718
  1. 'use strict';
  2. const XLSX = require('../xlsx/xlsx');
  3. class ModelContainer {
  4. constructor(model) {
  5. this.model = model;
  6. }
  7. get xlsx() {
  8. if (!this._xlsx) {
  9. this._xlsx = new XLSX(this);
  10. }
  11. return this._xlsx;
  12. }
  13. }
  14. module.exports = ModelContainer;