INNER CODE UNIT · JavaScript
Node
astefanutti/kubebox · webpack.node.js:18
function Node(options) {
var self = this;
var Screen = require('blessed').Screen;
if (!(this instanceof Node)) {
return new Node(options);
}
if (!['xterm-color', 'xterm-16color', 'xterm-256color'].includes(TERM)) {
theme(self, options);
}
EventEmitter.call(this);
options = options || {};
this.options = options;
this.screen = this.screen || options.screen;