MCPcopy Create free account
hub / github.com/6dylan6/jdm / constructor

Method constructor

sendNotify.js:2828–2837  ·  view source on GitHub ↗
(t, s)

Source from the content-addressed store, hash-verified

2826function Env(t, s) {
2827 return new(class {
2828 constructor(t, s) {
2829 (this.name = t),
2830 (this.data = null),
2831 (this.dataFile = 'box.dat'),
2832 (this.logs = []),
2833 (this.logSeparator = '\n'),
2834 (this.startTime = new Date().getTime()),
2835 Object.assign(this, s),
2836 this.log('', `\ud83d\udd14${this.name}, \u5f00\u59cb!`);
2837 }
2838 isNode() {
2839 return 'undefined' != typeof module && !!module.exports;
2840 }

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected