UNPKG

console-toolkit

Version:

Toolkit to produce a fancy console output (boxes, tables, charts, colors).

25 lines (21 loc) 566 B
import Bitmap from './bitmap.js'; import drawLine from './draw-line.js'; import drawRect from './draw-rect.js'; import toQuads from './to-quads.js'; // patch Bitmap Bitmap.prototype.line = function (...args) { drawLine(this, ...args); return this; }; Bitmap.prototype.rect = function (...args) { drawRect(this, ...args); return this; }; Bitmap.prototype.toQuads = function () { return toQuads(this); }; Bitmap.prototype.toStrings = function () { return this.toBox().toStrings(); }; export {Bitmap, drawLine, drawRect, toQuads}; export default Bitmap;