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

Method constructor

function/sendNotify.js:2279–2288  ·  view source on GitHub ↗
(t, s)

Source from the content-addressed store, hash-verified

2277function Env(t, s) {
2278 return new(class {
2279 constructor(t, s) {
2280 (this.name = t),
2281 (this.data = null),
2282 (this.dataFile = 'box.dat'),
2283 (this.logs = []),
2284 (this.logSeparator = '\n'),
2285 (this.startTime = new Date().getTime()),
2286 Object.assign(this, s),
2287 this.log('', `\ud83d\udd14${this.name}, \u5f00\u59cb!`);
2288 }
2289 isNode() {
2290 return 'undefined' != typeof module && !!module.exports;
2291 }

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected